home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1991-10-30 | 12.4 KB | [TEXT/????] |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
You can browse this item here: token.c
Confidence | Program | Detection | Match Type | Support
|
---|
66%
| dexvert
| Compact Compressed (Unix) (archive/compact)
| ext
| Supported |
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, Wed Oct 30 16:34:31 1991, modified Wed Oct 30 16:34:31 1991, creator '????', type ASCII, 12048 bytes "token.c" , at 0x2f90 382 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [????] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 07 74 6f 6b 65 6e 2e | 63 00 00 00 00 00 00 00 |..token.|c.......|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 3f 3f 3f | 3f 00 00 00 00 00 00 00 |.TEXT???|?.......|
|00000050| 00 00 00 00 00 2f 10 00 | 00 01 7e a5 34 d5 e7 a5 |...../..|..~.4...|
|00000060| 34 d5 e7 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |4.......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 fb 1c 00 00 |........|........|
|00000080| 2f 2a 20 74 6f 6b 65 6e | 2e 63 20 69 73 20 74 68 |/* token|.c is th|
|00000090| 65 20 73 68 65 6c 6c 20 | 6f 66 20 74 68 65 20 74 |e shell |of the t|
|000000a0| 6f 6b 65 6e 20 68 61 6e | 64 6c 69 6e 67 20 72 6f |oken han|dling ro|
|000000b0| 75 74 69 6e 65 2c 20 77 | 68 69 63 68 20 69 73 20 |utine, w|hich is |
|000000c0| 66 69 6c 6c 65 64 20 0d | 20 2a 20 20 69 6e 20 77 |filled .| * in w|
|000000d0| 69 74 68 20 74 68 65 20 | 72 6f 75 74 69 6e 65 73 |ith the |routines|
|000000e0| 20 65 78 65 63 75 74 65 | 64 20 77 68 65 6e 20 61 | execute|d when a|
|000000f0| 6e 20 61 63 74 69 6f 6e | 20 64 65 73 63 72 69 62 |n action| describ|
|00000100| 65 64 20 62 79 20 61 20 | 74 6f 6b 65 6e 20 65 6e |ed by a |token en|
|00000110| 74 72 79 20 0d 20 2a 20 | 20 69 73 20 66 6f 75 6e |try . * | is foun|
|00000120| 64 2e 0d 20 2a 2f 0d 0d | 2f 2a 0d 09 43 6f 70 79 |d.. */..|/*..Copy|
|00000130| 72 69 67 68 74 20 43 6f | 72 6e 65 6c 6c 20 55 6e |right Co|rnell Un|
|00000140| 69 76 65 72 73 69 74 79 | 20 31 39 38 36 2e 20 20 |iversity| 1986. |
|00000150| 41 6c 6c 20 72 69 67 68 | 74 73 20 61 72 65 20 72 |All righ|ts are r|
|00000160| 65 73 65 72 76 65 64 2e | 0d 0d 2a 2f 0d 0d 23 69 |eserved.|..*/..#i|
|00000170| 6e 63 6c 75 64 65 20 3c | 65 6d 2e 68 3e 0d 0d 23 |nclude <|em.h>..#|
|00000180| 69 6e 63 6c 75 64 65 20 | 3c 6d 65 6e 75 64 65 66 |include |<menudef|
|00000190| 73 2e 68 3e 0d 23 69 6e | 63 6c 75 64 65 20 3c 72 |s.h>.#in|clude <r|
|000001a0| 63 6f 64 65 73 2e 68 3e | 0d 23 69 6e 63 6c 75 64 |codes.h>|.#includ|
|000001b0| 65 20 3c 68 31 39 2e 68 | 3e 0d 23 69 6e 63 6c 75 |e <h19.h|>.#inclu|
|000001c0| 64 65 20 3c 33 32 37 30 | 2e 68 3e 0d 23 69 6e 63 |de <3270|.h>.#inc|
|000001d0| 6c 75 64 65 20 3c 6d 61 | 63 64 65 66 73 2e 68 3e |lude <ma|cdefs.h>|
|000001e0| 0d 23 69 6e 63 6c 75 64 | 65 20 3c 72 65 73 64 65 |.#includ|e <resde|
|000001f0| 66 73 2e 68 3e 0d 0d 0d | 63 68 61 72 20 73 63 72 |fs.h>...|char scr|
|00000200| 61 70 7a 65 72 6f 65 64 | 3b 09 09 09 2f 2a 20 68 |apzeroed|;.../* h|
|00000210| 61 73 20 73 63 72 61 70 | 20 62 65 65 6e 20 7a 65 |as scrap| been ze|
|00000220| 72 6f 65 64 20 79 65 74 | 3f 20 2a 2f 0d 73 68 6f |roed yet|? */.sho|
|00000230| 72 74 20 69 6e 74 6f 6b | 65 6e 5f 73 65 72 76 69 |rt intok|en_servi|
|00000240| 63 65 3b 09 09 2f 2a 20 | 77 65 20 64 6f 6e 27 74 |ce;../* |we don't|
|00000250| 20 68 61 6e 64 6c 65 20 | 72 65 65 6e 74 72 61 6e | handle |reentran|
|00000260| 74 20 63 61 6c 6c 73 2c | 20 65 72 72 6f 72 28 29 |t calls,| error()|
|00000270| 20 63 61 6e 20 62 65 20 | 66 61 74 61 6c 20 2a 2f | can be |fatal */|
|00000280| 0d 0d 74 6f 6b 65 6e 5f | 73 65 72 76 69 63 65 28 |..token_|service(|
|00000290| 29 0d 7b 0d 09 73 74 72 | 75 63 74 20 74 6f 6b 65 |).{..str|uct toke|
|000002a0| 6e 20 2a 20 74 68 65 61 | 63 74 3b 0d 09 73 74 72 |n * thea|ct;..str|
|000002b0| 75 63 74 20 77 69 6e 64 | 73 20 2a 2a 20 63 6f 6e |uct wind|s ** con|
|000002c0| 70 20 3d 20 63 6f 6e 6e | 73 3b 0d 09 73 74 72 75 |p = conn|s;..stru|
|000002d0| 63 74 20 77 69 6e 64 73 | 20 2a 20 63 6f 6e 65 6e |ct winds| * conen|
|000002e0| 64 20 3d 20 26 63 6f 6e | 70 5b 63 6f 6e 6e 63 6f |d = &con|p[connco|
|000002f0| 75 6e 74 5d 3b 0d 09 72 | 65 67 69 73 74 65 72 20 |unt];..r|egister |
|00000300| 73 74 72 75 63 74 20 77 | 69 6e 64 73 20 2a 20 74 |struct w|inds * t|
|00000310| 77 70 3b 0d 09 65 78 74 | 65 72 6e 20 73 68 6f 72 |wp;..ext|ern shor|
|00000320| 74 20 61 73 63 69 69 66 | 6c 75 73 68 3b 0d 09 0d |t asciif|lush;...|
|00000330| 09 69 66 20 28 69 6e 74 | 6f 6b 65 6e 5f 73 65 72 |.if (int|oken_ser|
|00000340| 76 69 63 65 29 0d 09 09 | 72 65 74 75 72 6e 3b 0d |vice)...|return;.|
|00000350| 09 69 6e 74 6f 6b 65 6e | 5f 73 65 72 76 69 63 65 |.intoken|_service|
|00000360| 20 3d 20 54 52 55 45 3b | 0d 09 0d 09 2f 2a 20 54 | = TRUE;|..../* T|
|00000370| 4f 44 4f 20 4d 55 4c 54 | 49 20 67 6f 20 74 68 72 |ODO MULT|I go thr|
|00000380| 6f 75 67 68 20 77 69 6e | 64 6f 77 20 6c 69 73 74 |ough win|dow list|
|00000390| 20 74 6f 20 73 65 65 20 | 77 68 6f 20 6e 65 65 64 | to see |who need|
|000003a0| 73 20 73 65 72 76 69 63 | 65 20 2a 2f 0d 09 77 68 |s servic|e */..wh|
|000003b0| 69 6c 65 20 28 63 6f 6e | 70 20 3c 20 63 6f 6e 65 |ile (con|p < cone|
|000003c0| 6e 64 29 20 7b 0d 09 09 | 74 77 70 20 3d 20 2a 63 |nd) {...|twp = *c|
|000003d0| 6f 6e 70 2b 2b 3b 0d 09 | 09 69 66 20 28 74 77 70 |onp++;..|.if (twp|
|000003e0| 20 3d 3d 20 4e 55 4c 4c | 29 0d 09 09 09 63 6f 6e | == NULL|)....con|
|000003f0| 74 69 6e 75 65 3b 0d 09 | 09 09 09 0d 09 09 69 66 |tinue;..|......if|
|00000400| 20 28 74 77 70 2d 3e 71 | 5f 63 6e 74 20 3d 3d 20 | (twp->q|_cnt == |
|00000410| 30 20 7c 7c 20 74 77 70 | 2d 3e 64 65 6c 61 79 74 |0 || twp|->delayt|
|00000420| 6f 6b 65 6e 73 29 0d 09 | 09 09 2f 2a 20 6e 6f 20 |okens)..|../* no |
|00000430| 69 6e 70 75 74 20 74 6f | 6b 65 6e 73 20 77 61 69 |input to|kens wai|
|00000440| 74 69 6e 67 2c 20 6f 72 | 20 77 65 20 73 68 6f 75 |ting, or| we shou|
|00000450| 6c 64 20 68 6f 6c 64 20 | 74 6f 6b 65 6e 73 20 66 |ld hold |tokens f|
|00000460| 6f 72 20 74 68 69 73 20 | 77 69 6e 64 6f 77 2e 2e |or this |window..|
|00000470| 2e 20 2a 2f 0d 09 09 09 | 63 6f 6e 74 69 6e 75 65 |. */....|continue|
|00000480| 3b 0d 09 09 09 0d 09 09 | 67 65 74 63 6f 6e 74 65 |;.......|getconte|
|00000490| 78 74 28 74 77 70 29 3b | 0d 09 09 77 68 69 6c 65 |xt(twp);|...while|
|000004a0| 20 28 21 74 77 70 2d 3e | 64 65 6c 61 79 74 6f 6b | (!twp->|delaytok|
|000004b0| 65 6e 73 20 26 26 20 74 | 77 70 2d 3e 71 5f 63 6e |ens && t|wp->q_cn|
|000004c0| 74 20 3e 20 30 29 20 7b | 0d 09 09 09 74 68 65 61 |t > 0) {|....thea|
|000004d0| 63 74 20 3d 20 67 65 74 | 61 63 74 69 6f 6e 28 29 |ct = get|action()|
|000004e0| 3b 0d 09 09 09 69 66 20 | 28 28 2a 74 77 70 2d 3e |;....if |((*twp->|
|000004f0| 64 6f 74 6f 6b 65 6e 29 | 28 74 68 65 61 63 74 29 |dotoken)|(theact)|
|00000500| 29 20 7b 0d 09 09 09 09 | 75 6e 67 65 74 61 63 74 |) {.....|ungetact|
|00000510| 69 6f 6e 28 74 68 65 61 | 63 74 29 3b 0d 09 09 09 |ion(thea|ct);....|
|00000520| 09 62 72 65 61 6b 3b 0d | 09 09 09 7d 0d 09 09 7d |.break;.|...}...}|
|00000530| 0d 09 09 69 66 20 28 74 | 77 70 2d 3e 65 6d 77 69 |...if (t|wp->emwi|
|00000540| 6e 64 6f 77 29 20 7b 0d | 09 09 09 2f 2a 20 69 66 |ndow) {.|.../* if|
|00000550| 20 74 68 65 20 73 65 73 | 73 69 6f 6e 20 68 61 73 | the ses|sion has|
|00000560| 20 61 20 77 69 6e 64 6f | 77 2c 20 66 69 78 20 74 | a windo|w, fix t|
|00000570| 68 65 20 6d 61 63 72 6f | 20 66 6c 61 67 20 2a 2f |he macro| flag */|
|00000580| 0d 09 09 09 69 66 20 28 | 21 74 77 70 2d 3e 6d 61 |....if (|!twp->ma|
|00000590| 63 72 6f 65 78 65 63 75 | 74 69 6e 67 29 20 7b 0d |croexecu|ting) {.|
|000005a0| 09 09 09 09 69 66 20 28 | 74 77 70 2d 3e 71 5f 63 |....if (|twp->q_c|
|000005b0| 6e 74 20 3e 20 30 29 20 | 7b 0d 09 09 09 09 09 2f |nt > 0) |{....../|
|000005c0| 2a 20 69 6e 76 65 72 74 | 20 74 68 65 20 6d 61 63 |* invert| the mac|
|000005d0| 72 6f 20 66 6c 61 67 20 | 2a 2f 0d 09 09 09 09 09 |ro flag |*/......|
|000005e0| 74 77 70 2d 3e 6d 61 63 | 72 6f 65 78 65 63 75 74 |twp->mac|roexecut|
|000005f0| 69 6e 67 20 3d 20 54 52 | 55 45 3b 0d 09 09 09 09 |ing = TR|UE;.....|
|00000600| 09 2f 2a 20 49 6e 76 61 | 6c 52 65 63 74 28 26 74 |./* Inva|lRect(&t|
|00000610| 77 70 2d 3e 6d 61 63 72 | 6f 72 65 63 74 29 3b 0d |wp->macr|orect);.|
|00000620| 09 09 09 09 09 2a 2f 0d | 09 09 09 09 09 73 68 6f |.....*/.|.....sho|
|00000630| 77 6d 61 63 72 6f 66 6c | 61 67 28 29 3b 0d 09 09 |wmacrofl|ag();...|
|00000640| 09 09 09 09 2f 2a 20 73 | 68 6f 77 20 69 6e 76 65 |..../* s|how inve|
|00000650| 72 73 65 20 6d 61 63 72 | 6f 20 66 6c 61 67 20 74 |rse macr|o flag t|
|00000660| 6f 20 69 6e 64 69 63 61 | 74 65 20 73 74 75 66 66 |o indica|te stuff|
|00000670| 20 6c 65 66 74 20 6f 6e | 0d 09 09 09 09 09 09 09 | left on|........|
|00000680| 71 75 65 75 65 20 77 68 | 69 63 68 20 63 61 6e 20 |queue wh|ich can |
|00000690| 73 74 69 6c 6c 20 62 65 | 20 63 61 6e 63 65 6c 6c |still be| cancell|
|000006a0| 65 64 2e 2e 2e 20 2a 2f | 0d 09 09 09 09 7d 0d 09 |ed... */|.....}..|
|000006b0| 09 09 7d 0d 09 09 09 65 | 6c 73 65 20 7b 0d 09 09 |..}....e|lse {...|
|000006c0| 09 09 69 66 20 28 74 77 | 70 2d 3e 71 5f 63 6e 74 |..if (tw|p->q_cnt|
|000006d0| 20 3c 3d 20 30 29 20 7b | 0d 09 09 09 09 09 2f 2a | <= 0) {|....../*|
|000006e0| 20 72 65 73 65 74 20 74 | 68 65 20 66 6c 61 67 20 | reset t|he flag |
|000006f0| 2a 2f 0d 09 09 09 09 09 | 74 77 70 2d 3e 6d 61 63 |*/......|twp->mac|
|00000700| 72 6f 65 78 65 63 75 74 | 69 6e 67 20 3d 20 46 41 |roexecut|ing = FA|
|00000710| 4c 53 45 3b 0d 09 09 09 | 09 09 69 66 20 28 65 6d |LSE;....|..if (em|
|00000720| 64 70 2d 3e 64 6f 6b 65 | 79 6d 61 63 72 6f 73 29 |dp->doke|ymacros)|
|00000730| 0d 09 09 09 09 09 09 73 | 68 6f 77 6d 61 63 72 6f |.......s|howmacro|
|00000740| 66 6c 61 67 28 29 3b 0d | 09 09 09 09 09 65 6c 73 |flag();.|.....els|
|00000750| 65 0d 09 09 09 09 09 09 | 63 6c 72 6d 61 63 72 6f |e.......|clrmacro|
|00000760| 66 6c 61 67 28 29 3b 0d | 09 09 09 09 09 2f 2a 20 |flag();.|...../* |
|00000770| 49 6e 76 61 6c 52 65 63 | 74 28 26 74 77 70 2d 3e |InvalRec|t(&twp->|
|00000780| 6d 61 63 72 6f 72 65 63 | 74 29 3b 0d 09 09 09 09 |macrorec|t);.....|
|00000790| 09 2a 2f 0d 09 09 09 09 | 7d 0d 09 09 09 7d 0d 09 |.*/.....|}....}..|
|000007a0| 09 7d 0d 09 09 69 66 20 | 28 61 73 63 69 69 66 6c |.}...if |(asciifl|
|000007b0| 75 73 68 29 20 7b 0d 09 | 09 09 2f 2a 20 66 6c 75 |ush) {..|../* flu|
|000007c0| 73 68 20 74 68 65 20 6f | 75 74 70 75 74 20 62 75 |sh the o|utput bu|
|000007d0| 66 66 65 72 73 20 69 66 | 20 63 61 6c 6c 65 64 20 |ffers if| called |
|000007e0| 66 6f 72 2c 20 6f 6e 6c | 79 20 6e 65 65 64 20 77 |for, onl|y need w|
|000007f0| 69 74 68 20 61 73 63 69 | 69 20 2a 2f 0d 09 09 09 |ith asci|i */....|
|00000800| 61 73 63 69 69 66 6c 75 | 73 68 20 3d 20 46 41 4c |asciiflu|sh = FAL|
|00000810| 53 45 3b 0d 09 09 09 28 | 2a 74 77 70 2d 3e 70 75 |SE;....(|*twp->pu|
|00000820| 74 66 6c 75 73 68 29 28 | 29 3b 0d 09 09 7d 0d 09 |tflush)(|);...}..|
|00000830| 09 74 77 70 2d 3e 6d 6f | 64 66 6c 67 20 3d 20 6d |.twp->mo|dflg = m|
|00000840| 6f 64 66 6c 67 3b 09 09 | 2f 2a 20 6d 75 73 74 20 |odflg;..|/* must |
|00000850| 75 70 64 61 74 65 20 69 | 6e 20 63 61 73 65 20 73 |update i|n case s|
|00000860| 74 61 74 65 20 63 68 61 | 6e 67 65 64 20 2a 2f 0d |tate cha|nged */.|
|00000870| 09 7d 0d 09 69 6e 74 6f | 6b 65 6e 5f 73 65 72 76 |.}..into|ken_serv|
|00000880| 69 63 65 20 3d 20 46 41 | 4c 53 45 3b 0d 7d 0d 0d |ice = FA|LSE;.}..|
|00000890| 0d 2f 2a 20 70 72 65 73 | 65 72 76 65 73 20 74 68 |./* pres|erves th|
|000008a0| 65 20 63 75 72 72 65 6e | 74 20 63 6f 6e 74 65 78 |e curren|t contex|
|000008b0| 74 20 6f 76 65 72 20 61 | 20 63 61 6c 6c 20 74 6f |t over a| call to|
|000008c0| 20 74 6f 6b 65 6e 5f 73 | 65 72 76 69 63 65 28 29 | token_s|ervice()|
|000008d0| 20 2a 2f 0d 0d 62 6b 72 | 64 5f 74 6f 6b 65 6e 5f | */..bkr|d_token_|
|000008e0| 73 65 72 76 69 63 65 28 | 29 0d 7b 0d 09 73 74 72 |service(|).{..str|
|000008f0| 75 63 74 20 77 69 6e 64 | 73 20 2a 20 6f 65 6d 64 |uct wind|s * oemd|
|00000900| 70 3b 0d 0d 09 6f 65 6d | 64 70 20 3d 20 65 6d 64 |p;...oem|dp = emd|
|00000910| 70 3b 0d 09 74 6f 6b 65 | 6e 5f 73 65 72 76 69 63 |p;..toke|n_servic|
|00000920| 65 28 29 3b 0d 09 0d 09 | 67 65 74 63 6f 6e 74 65 |e();....|getconte|
|00000930| 78 74 28 6f 65 6d 64 70 | 29 3b 09 2f 2a 20 72 65 |xt(oemdp|);./* re|
|00000940| 73 74 6f 72 65 20 63 6f | 6e 74 65 78 74 2c 20 73 |store co|ntext, s|
|00000950| 69 6e 63 65 20 69 74 20 | 6d 69 67 68 74 20 68 61 |ince it |might ha|
|00000960| 76 65 20 63 68 61 6e 67 | 65 64 20 2a 2f 0d 7d 0d |ve chang|ed */.}.|
|00000970| 0d 2f 2a 20 72 65 73 65 | 74 20 74 68 65 20 66 6c |./* rese|t the fl|
|00000980| 61 67 20 74 68 61 74 20 | 68 6f 6c 64 73 20 74 6f |ag that |holds to|
|00000990| 6b 65 6e 20 69 6e 74 65 | 72 70 72 65 74 61 74 69 |ken inte|rpretati|
|000009a0| 6f 6e 20 2a 2f 0d 0d 72 | 65 73 75 6d 65 74 6f 6b |on */..r|esumetok|
|000009b0| 65 6e 73 28 74 77 70 29 | 0d 73 74 72 75 63 74 20 |ens(twp)|.struct |
|000009c0| 77 69 6e 64 73 20 2a 20 | 74 77 70 3b 0d 7b 0d 09 |winds * |twp;.{..|
|000009d0| 74 77 70 2d 3e 64 65 6c | 61 79 74 6f 6b 65 6e 73 |twp->del|aytokens|
|000009e0| 20 3d 20 46 41 4c 53 45 | 3b 0d 7d 0d 0d 0d 2f 2a | = FALSE|;.}.../*|
|000009f0| 20 61 62 6f 72 74 20 70 | 72 6f 63 65 73 73 69 6e | abort p|rocessin|
|00000a00| 67 20 61 66 74 65 72 20 | 6d 61 74 63 68 20 66 61 |g after |match fa|
|00000a10| 69 6c 75 72 65 20 2a 2f | 0d 0d 61 62 6f 72 74 6d |ilure */|..abortm|
|00000a20| 61 74 63 68 28 74 77 70 | 29 0d 73 74 72 75 63 74 |atch(twp|).struct|
|00000a30| 20 77 69 6e 64 73 20 2a | 20 74 77 70 3b 0d 7b 0d | winds *| twp;.{.|
|00000a40| 09 73 74 72 75 63 74 20 | 77 69 6e 64 73 20 2a 20 |.struct |winds * |
|00000a50| 6f 65 6d 64 70 3b 0d 09 | 0d 09 6f 65 6d 64 70 20 |oemdp;..|..oemdp |
|00000a60| 3d 20 65 6d 64 70 3b 09 | 09 09 0d 09 65 6d 64 70 |= emdp;.|....emdp|
|00000a70| 20 3d 20 74 77 70 3b 09 | 09 09 2f 2a 20 66 69 78 | = twp;.|../* fix|
|00000a80| 20 74 68 65 20 64 61 74 | 61 20 63 6f 6e 74 65 78 | the dat|a contex|
|00000a90| 74 20 66 6f 72 20 74 6f | 6b 65 6e 20 70 72 6f 63 |t for to|ken proc|
|00000aa0| 65 73 73 69 6e 67 20 2a | 2f 0d 09 0d 09 65 6d 64 |essing *|/....emd|
|00000ab0| 70 2d 3e 64 65 6c 61 79 | 74 6f 6b 65 6e 73 20 3d |p->delay|tokens =|
|00000ac0| 20 46 41 4c 53 45 3b 0d | 09 66 6c 75 73 68 74 6f | FALSE;.|.flushto|
|00000ad0| 6b 65 6e 6d 61 74 63 68 | 28 29 3b 0d 09 0d 09 65 |kenmatch|();....e|
|00000ae0| 6d 64 70 20 3d 20 6f 65 | 6d 64 70 3b 0d 7d 0d 0d |mdp = oe|mdp;.}..|
|00000af0| 0d 2f 2a 20 74 68 65 20 | 73 74 61 6e 64 61 72 64 |./* the |standard|
|00000b00| 20 74 6f 6b 65 6e 20 68 | 61 6e 64 6c 65 72 2c 20 | token h|andler, |
|00000b10| 66 6f 72 20 74 6f 6b 65 | 6e 73 20 61 6e 79 20 65 |for toke|ns any e|
|00000b20| 6d 75 6c 61 74 6f 72 20 | 77 69 6c 6c 20 6e 65 65 |mulator |will nee|
|00000b30| 64 20 74 6f 20 68 61 6e | 64 6c 65 20 2a 2f 0d 0d |d to han|dle */..|
|00000b40| 73 74 64 74 6f 6b 65 6e | 28 74 6b 70 74 72 29 0d |stdtoken|(tkptr).|
|00000b50| 73 74 72 75 63 74 20 74 | 6f 6b 65 6e 20 2a 74 6b |struct t|oken *tk|
|00000b60| 70 74 72 3b 0d 7b 0d 09 | 73 74 72 75 63 74 20 74 |ptr;.{..|struct t|
|00000b70| 6f 6b 65 6e 20 2a 77 74 | 6f 6b 65 6e 3b 0d 09 09 |oken *wt|oken;...|
|00000b80| 09 09 0d 09 73 77 69 74 | 63 68 20 28 74 6b 70 74 |....swit|ch (tkpt|
|00000b90| 72 2d 3e 63 6c 61 73 73 | 29 20 7b 0d 09 09 63 61 |r->class|) {...ca|
|00000ba0| 73 65 20 52 53 4c 54 5f | 53 43 4f 50 59 3a 20 7b |se RSLT_|SCOPY: {|
|00000bb0| 0d 09 09 09 72 6c 69 6e | 63 6f 70 79 28 74 6b 70 |....rlin|copy(tkp|
|00000bc0| 74 72 2d 3e 65 6e 74 72 | 79 29 3b 0d 09 09 09 62 |tr->entr|y);....b|
|00000bd0| 72 65 61 6b 3b 0d 09 09 | 7d 0d 09 09 63 61 73 65 |reak;...|}...case|
|00000be0| 20 52 53 4c 54 5f 44 45 | 4c 41 59 3a 20 7b 0d 09 | RSLT_DE|LAY: {..|
|00000bf0| 09 09 2f 2a 20 64 65 6c | 61 79 20 69 6e 70 75 74 |../* del|ay input|
|00000c00| 20 66 6f 72 20 23 20 6f | 66 20 73 65 63 6f 6e 64 | for # o|f second|
|00000c10| 73 20 73 70 65 63 69 66 | 69 65 64 20 62 79 20 74 |s specif|ied by t|
|00000c20| 6f 6b 65 6e 20 65 6e 74 | 72 79 20 2a 2f 0d 09 09 |oken ent|ry */...|
|00000c30| 09 65 6d 64 70 2d 3e 64 | 65 6c 61 79 74 6f 6b 65 |.emdp->d|elaytoke|
|00000c40| 6e 73 20 3d 20 54 52 55 | 45 3b 0d 09 09 09 74 6d |ns = TRU|E;....tm|
|00000c50| 5f 73 65 74 28 28 69 6e | 74 29 20 74 6b 70 74 72 |_set((in|t) tkptr|
|00000c60| 2d 3e 65 6e 74 72 79 2c | 20 72 65 73 75 6d 65 74 |->entry,| resumet|
|00000c70| 6f 6b 65 6e 73 2c 20 65 | 6d 64 70 2c 20 65 6d 64 |okens, e|mdp, emd|
|00000c80| 70 2d 3e 74 6f 6b 65 6e | 5f 74 6d 29 3b 0d 09 09 |p->token|_tm);...|
|00000c90| 09 62 72 65 61 6b 3b 0d | 09 09 7d 0d 09 09 63 61 |.break;.|..}...ca|
|00000ca0| 73 65 20 52 53 4c 54 5f | 4d 41 54 43 48 3a 20 7b |se RSLT_|MATCH: {|
|00000cb0| 0d 09 09 09 2f 2a 20 77 | 61 69 74 20 75 6e 74 69 |..../* w|ait unti|
|00000cc0| 6c 20 61 20 6d 61 74 63 | 68 20 69 73 20 66 6f 75 |l a matc|h is fou|
|00000cd0| 6e 64 20 69 6e 20 74 68 | 65 20 69 6e 70 75 74 20 |nd in th|e input |
|00000ce0| 73 74 72 65 61 6d 20 2a | 2f 0d 09 09 09 65 6d 64 |stream *|/....emd|
|00000cf0| 70 2d 3e 64 65 6c 61 79 | 74 6f 6b 65 6e 73 20 3d |p->delay|tokens =|
|00000d00| 20 54 52 55 45 3b 0d 09 | 09 09 65 6d 64 70 2d 3e | TRUE;..|..emdp->|
|00000d10| 6d 61 74 63 68 69 6e 70 | 75 74 20 3d 20 54 52 55 |matchinp|ut = TRU|
|00000d20| 45 3b 0d 09 09 09 74 6f | 6b 65 6e 6c 6f 6f 70 28 |E;....to|kenloop(|
|00000d30| 2d 31 29 3b 09 09 2f 2a | 20 65 73 74 61 62 6c 69 |-1);../*| establi|
|00000d40| 73 68 20 65 74 65 72 6e | 61 6c 20 6c 6f 6f 70 20 |sh etern|al loop |
|00000d50| 2a 2f 0d 09 09 09 69 66 | 20 28 74 6b 70 74 72 2d |*/....if| (tkptr-|
|00000d60| 3e 65 6e 74 72 79 20 21 | 3d 20 32 35 35 29 0d 09 |>entry !|= 255)..|
|00000d70| 09 09 09 2f 2a 20 74 69 | 6d 65 20 6f 75 74 20 6f |.../* ti|me out o|
|00000d80| 6e 20 77 61 69 74 20 75 | 6e 6c 65 73 73 20 75 73 |n wait u|nless us|
|00000d90| 65 72 20 73 70 65 63 69 | 66 69 65 73 20 32 35 35 |er speci|fies 255|
|00000da0| 20 2a 2f 0d 09 09 09 09 | 74 6d 5f 73 65 74 28 28 | */.....|tm_set((|
|00000db0| 69 6e 74 29 20 74 6b 70 | 74 72 2d 3e 65 6e 74 72 |int) tkp|tr->entr|
|00000dc0| 79 2c 20 61 62 6f 72 74 | 6d 61 74 63 68 2c 20 65 |y, abort|match, e|
|00000dd0| 6d 64 70 2c 20 65 6d 64 | 70 2d 3e 74 6f 6b 65 6e |mdp, emd|p->token|
|00000de0| 5f 74 6d 29 3b 0d 09 09 | 09 62 72 65 61 6b 3b 0d |_tm);...|.break;.|
|00000df0| 09 09 7d 0d 09 09 63 61 | 73 65 20 52 53 4c 54 5f |..}...ca|se RSLT_|
|00000e00| 45 4d 43 3a 20 20 20 7b | 0d 09 09 09 2f 2a 20 65 |EMC: {|..../* e|
|00000e10| 6d 75 6c 61 74 6f 72 20 | 61 63 74 69 6f 6e 20 6b |mulator |action k|
|00000e20| 65 79 20 2a 2f 0d 09 09 | 09 73 77 69 74 63 68 28 |ey */...|.switch(|
|00000e30| 74 6b 70 74 72 2d 3e 65 | 6e 74 72 79 29 20 7b 0d |tkptr->e|ntry) {.|
|00000e40| 09 09 09 09 63 61 73 65 | 20 45 4d 5f 46 49 4c 4c |....case| EM_FILL|
|00000e50| 43 4c 4f 53 45 3a 20 7b | 0d 09 09 09 09 09 66 69 |CLOSE: {|......fi|
|00000e60| 6c 6c 77 69 6e 64 63 6c | 6f 73 65 28 29 3b 0d 09 |llwindcl|ose();..|
|00000e70| 09 09 09 09 62 72 65 61 | 6b 3b 0d 09 09 09 09 7d |....brea|k;.....}|
|00000e80| 0d 09 09 09 09 63 61 73 | 65 20 45 4d 5f 52 45 53 |.....cas|e EM_RES|
|00000e90| 54 4f 52 45 3a 20 7b 0d | 09 09 09 09 09 2f 2a 20 |TORE: {.|...../* |
|00000ea0| 72 65 73 74 6f 72 65 20 | 6c 69 6e 65 20 32 35 20 |restore |line 25 |
|00000eb0| 2d 2d 20 75 73 65 64 20 | 62 79 20 68 6f 73 74 63 |-- used |by hostc|
|00000ec0| 6f 6e 6e 63 6f 6d 70 6c | 65 74 65 28 29 20 2a 2f |onncompl|ete() */|
|00000ed0| 0d 09 09 09 09 09 72 65 | 73 65 74 32 35 28 65 6d |......re|set25(em|
|00000ee0| 64 70 29 3b 0d 09 09 09 | 09 09 62 72 65 61 6b 3b |dp);....|..break;|
|00000ef0| 0d 09 09 09 09 7d 0d 09 | 09 09 09 63 61 73 65 20 |.....}..|...case |
|00000f00| 45 4d 5f 48 49 44 45 3a | 20 7b 0d 09 09 09 09 09 |EM_HIDE:| {......|
|00000f10| 65 6d 64 70 2d 3e 65 6d | 64 69 73 61 62 6c 65 20 |emdp->em|disable |
|00000f20| 3d 20 54 52 55 45 3b 0d | 09 09 09 09 09 2f 2a 20 |= TRUE;.|...../* |
|00000f30| 6d 61 6b 65 20 73 75 72 | 65 20 63 75 72 73 6f 72 |make sur|e cursor|
|00000f40| 20 69 73 20 76 69 73 69 | 62 6c 65 20 2a 2f 0d 09 | is visi|ble */..|
|00000f50| 09 09 09 09 53 65 74 43 | 75 72 73 6f 72 28 26 61 |....SetC|ursor(&a|
|00000f60| 72 72 6f 77 29 3b 20 0d | 09 09 09 09 09 73 68 6f |rrow); .|.....sho|
|00000f70| 77 63 75 72 73 6f 72 28 | 29 3b 20 0d 09 09 09 09 |wcursor(|); .....|
|00000f80| 09 62 72 65 61 6b 3b 0d | 09 09 09 09 7d 0d 09 09 |.break;.|....}...|
|00000f90| 09 09 63 61 73 65 20 45 | 4d 5f 41 4c 54 4d 41 43 |..case E|M_ALTMAC|
|00000fa0| 52 4f 3a 20 7b 0d 09 09 | 09 09 09 65 6d 64 70 2d |RO: {...|...emdp-|
|00000fb0| 3e 6b 65 79 61 6c 74 73 | 65 74 20 3d 20 54 52 55 |>keyalts|et = TRU|
|00000fc0| 45 3b 0d 09 09 09 09 09 | 2f 2a 20 49 6e 76 61 6c |E;......|/* Inval|
|00000fd0| 52 65 63 74 28 26 65 6d | 64 70 2d 3e 64 75 62 73 |Rect(&em|dp->dubs|
|00000fe0| 68 69 66 74 72 65 63 74 | 29 3b 20 2a 2f 0d 09 09 |hiftrect|); */...|
|00000ff0| 09 09 09 69 66 20 28 65 | 6d 64 70 2d 3e 64 6f 6b |...if (e|mdp->dok|
|00001000| 65 79 6d 61 63 72 6f 73 | 29 0d 09 09 09 09 09 09 |eymacros|).......|
|00001010| 73 68 6f 77 61 6c 74 6d | 61 63 72 6f 28 29 3b 0d |showaltm|acro();.|
|00001020| 09 09 09 09 09 62 72 65 | 61 6b 3b 0d 09 09 09 09 |.....bre|ak;.....|
|00001030| 7d 0d 09 09 09 09 63 61 | 73 65 20 45 4d 5f 4e 4f |}.....ca|se EM_NO|
|00001040| 52 4d 4d 41 43 52 4f 3a | 20 7b 0d 09 09 09 09 09 |RMMACRO:| {......|
|00001050| 65 6d 64 70 2d 3e 6b 65 | 79 61 6c 74 73 65 74 20 |emdp->ke|yaltset |
|00001060| 3d 20 46 41 4c 53 45 3b | 0d 09 09 09 09 09 2f 2a |= FALSE;|....../*|
|00001070| 20 49 6e 76 61 6c 52 65 | 63 74 28 26 65 6d 64 70 | InvalRe|ct(&emdp|
|00001080| 2d 3e 64 75 62 73 68 69 | 66 74 72 65 63 74 29 3b |->dubshi|ftrect);|
|00001090| 20 2a 2f 0d 09 09 09 09 | 09 69 66 20 28 65 6d 64 | */.....|.if (emd|
|000010a0| 70 2d 3e 64 6f 6b 65 79 | 6d 61 63 72 6f 73 29 0d |p->dokey|macros).|
|000010b0| 09 09 09 09 09 09 63 6c | 72 61 6c 74 6d 61 63 72 |......cl|raltmacr|
|000010c0| 6f 28 29 3b 0d 09 09 09 | 09 09 62 72 65 61 6b 3b |o();....|..break;|
|000010d0| 0d 09 09 09 09 7d 0d 09 | 09 09 09 63 61 73 65 20 |.....}..|...case |
|000010e0| 45 4d 5f 43 4c 4f 53 45 | 3a 20 7b 0d 09 09 09 09 |EM_CLOSE|: {.....|
|000010f0| 09 2f 2a 20 63 6c 6f 73 | 65 20 74 68 65 20 73 65 |./* clos|e the se|
|00001100| 73 73 69 6f 6e 20 2a 2f | 0d 09 09 09 09 09 64 6f |ssion */|......do|
|00001110| 63 6c 6f 73 65 63 6f 6e | 6e 28 29 3b 0d 09 09 09 |closecon|n();....|
|00001120| 09 09 62 72 65 61 6b 3b | 0d 09 09 09 09 7d 0d 09 |..break;|.....}..|
|00001130| 09 09 09 63 61 73 65 20 | 45 4d 5f 53 48 4f 57 3a |...case |EM_SHOW:|
|00001140| 20 7b 0d 09 09 09 09 09 | 65 6d 64 70 2d 3e 65 6d | {......|emdp->em|
|00001150| 64 69 73 61 62 6c 65 20 | 3d 20 46 41 4c 53 45 3b |disable |= FALSE;|
|00001160| 0d 09 09 09 09 09 2f 2a | 20 28 2a 65 6d 64 70 2d |....../*| (*emdp-|
|00001170| 3e 73 63 72 65 65 6e 5f | 75 70 64 29 28 29 3b 20 |>screen_|upd)(); |
|00001180| 2a 2f 0d 09 09 09 09 09 | 62 72 65 61 6b 3b 0d 09 |*/......|break;..|
|00001190| 09 09 09 7d 0d 23 69 66 | 64 65 66 20 55 53 45 54 |...}.#if|def USET|
|000011a0| 45 58 54 57 49 4e 44 4f | 57 53 0d 09 09 09 09 63 |EXTWINDO|WS.....c|
|000011b0| 61 73 65 20 45 4d 5f 45 | 44 49 54 3a 20 7b 0d 09 |ase EM_E|DIT: {..|
|000011c0| 09 09 09 09 73 65 6c 65 | 63 74 77 69 6e 64 6f 77 |....sele|ctwindow|
|000011d0| 28 65 6d 64 70 2d 3e 74 | 65 78 74 77 69 6e 64 6f |(emdp->t|extwindo|
|000011e0| 77 29 3b 0d 09 09 09 09 | 09 53 68 6f 77 57 69 6e |w);.....|.ShowWin|
|000011f0| 64 6f 77 28 65 6d 64 70 | 2d 3e 74 65 78 74 77 69 |dow(emdp|->textwi|
|00001200| 6e 64 6f 77 29 3b 0d 09 | 09 09 09 09 62 72 65 61 |ndow);..|....brea|
|00001210| 6b 3b 0d 09 09 09 09 7d | 0d 09 09 09 09 63 61 73 |k;.....}|.....cas|
|00001220| 65 20 45 4d 5f 54 45 52 | 4d 3a 20 7b 0d 09 09 09 |e EM_TER|M: {....|
|00001230| 09 09 73 65 6c 65 63 74 | 77 69 6e 64 6f 77 28 65 |..select|window(e|
|00001240| 6d 64 70 2d 3e 65 6d 77 | 69 6e 64 6f 77 29 3b 0d |mdp->emw|indow);.|
|00001250| 09 09 09 09 09 62 72 65 | 61 6b 3b 0d 09 09 09 09 |.....bre|ak;.....|
|00001260| 7d 0d 09 09 09 09 63 61 | 73 65 20 45 4d 5f 4c 49 |}.....ca|se EM_LI|
|00001270| 54 45 52 41 4c 3a 20 7b | 0d 09 09 09 09 09 69 66 |TERAL: {|......if|
|00001280| 20 28 65 6d 64 70 2d 3e | 65 6d 6c 69 74 65 72 61 | (emdp->|emlitera|
|00001290| 6c 29 0d 09 09 09 09 09 | 09 65 6d 64 70 2d 3e 65 |l)......|.emdp->e|
|000012a0| 6d 6c 69 74 65 72 61 6c | 20 3d 20 46 41 4c 53 45 |mliteral| = FALSE|
|000012b0| 3b 0d 09 09 09 09 09 65 | 6c 73 65 0d 09 09 09 09 |;......e|lse.....|
|000012c0| 09 09 65 6d 64 70 2d 3e | 65 6d 6c 69 74 65 72 61 |..emdp->|emlitera|
|000012d0| 6c 20 3d 20 54 52 55 45 | 3b 0d 09 09 09 09 09 09 |l = TRUE|;.......|
|000012e0| 2f 2a 20 73 65 74 20 74 | 68 65 20 41 53 43 49 49 |/* set t|he ASCII|
|000012f0| 20 65 6d 75 6c 61 74 6f | 72 73 20 74 6f 20 70 61 | emulato|rs to pa|
|00001300| 73 73 20 61 6c 6c 20 63 | 68 61 72 61 63 74 65 72 |ss all c|haracter|
|00001310| 73 2e 2e 2e 20 2a 2f 0d | 09 09 09 09 09 62 72 65 |s... */.|.....bre|
|00001320| 61 6b 3b 0d 09 09 09 09 | 7d 0d 09 09 09 09 63 61 |ak;.....|}.....ca|
|00001330| 73 65 20 45 4d 5f 54 52 | 59 44 53 44 52 41 57 3a |se EM_TR|YDSDRAW:|
|00001340| 20 20 7b 0d 09 09 09 09 | 09 2f 2a 20 74 6f 67 67 | {.....|./* togg|
|00001350| 6c 65 20 66 61 73 74 20 | 64 72 61 77 69 6e 67 20 |le fast |drawing |
|00001360| 6d 6f 64 65 20 2a 2f 0d | 09 09 09 09 09 74 72 79 |mode */.|.....try|
|00001370| 64 73 64 72 61 77 20 3d | 20 21 74 72 79 64 73 64 |dsdraw =| !trydsd|
|00001380| 72 61 77 3b 0d 09 09 09 | 09 09 74 65 73 74 64 73 |raw;....|..testds|
|00001390| 61 6c 6c 28 29 3b 0d 09 | 09 09 09 09 62 72 65 61 |all();..|....brea|
|000013a0| 6b 3b 0d 09 09 09 09 7d | 0d 09 09 09 09 63 61 73 |k;.....}|.....cas|
|000013b0| 65 20 45 4d 5f 54 52 41 | 43 4b 3a 20 20 7b 0d 09 |e EM_TRA|CK: {..|
|000013c0| 09 09 09 09 2f 2a 20 74 | 6f 67 67 6c 65 20 73 65 |..../* t|oggle se|
|000013d0| 6e 64 69 6e 67 20 6f 66 | 20 63 75 72 73 6f 72 20 |nding of| cursor |
|000013e0| 70 6f 73 69 74 69 6f 6e | 69 6e 67 20 73 65 71 75 |position|ing sequ|
|000013f0| 65 6e 63 65 73 20 77 69 | 74 68 20 6d 6f 75 73 65 |ences wi|th mouse|
|00001400| 20 2a 2f 0d 09 09 09 09 | 09 65 6d 64 70 2d 3e 6e | */.....|.emdp->n|
|00001410| 6f 74 72 61 63 6b 63 75 | 72 73 20 3d 20 21 65 6d |otrackcu|rs = !em|
|00001420| 64 70 2d 3e 6e 6f 74 72 | 61 63 6b 63 75 72 73 3b |dp->notr|ackcurs;|
|00001430| 0d 09 09 09 09 09 62 72 | 65 61 6b 3b 0d 09 09 09 |......br|eak;....|
|00001440| 09 7d 0d 23 65 6e 64 69 | 66 0d 09 09 09 09 64 65 |.}.#endi|f.....de|
|00001450| 66 61 75 6c 74 3a 0d 09 | 09 09 09 09 65 6e 74 72 |fault:..|....entr|
|00001460| 79 65 72 72 28 74 6b 70 | 74 72 29 3b 0d 09 09 09 |yerr(tkp|tr);....|
|00001470| 7d 0d 09 09 09 62 72 65 | 61 6b 3b 0d 09 09 7d 0d |}....bre|ak;...}.|
|00001480| 09 09 63 61 73 65 20 52 | 53 4c 54 5f 4c 4f 4f 50 |..case R|SLT_LOOP|
|00001490| 3a 20 20 20 7b 0d 09 09 | 09 2f 2a 20 65 6d 75 6c |: {...|./* emul|
|000014a0| 61 74 6f 72 20 61 63 74 | 69 6f 6e 20 6b 65 79 20 |ator act|ion key |
|000014b0| 2a 2f 0d 09 09 09 69 66 | 20 28 74 6b 70 74 72 2d |*/....if| (tkptr-|
|000014c0| 3e 65 6e 74 72 79 20 3d | 3d 20 32 35 35 29 0d 09 |>entry =|= 255)..|
|000014d0| 09 09 09 2f 2a 20 6c 6f | 6f 70 20 66 6f 72 65 76 |.../* lo|op forev|
|000014e0| 65 72 20 2a 2f 0d 09 09 | 09 09 74 6f 6b 65 6e 6c |er */...|..tokenl|
|000014f0| 6f 6f 70 28 2d 31 29 3b | 0d 09 09 09 65 6c 73 65 |oop(-1);|....else|
|00001500| 0d 09 09 09 09 74 6f 6b | 65 6e 6c 6f 6f 70 28 74 |.....tok|enloop(t|
|00001510| 6b 70 74 72 2d 3e 65 6e | 74 72 79 29 3b 0d 09 09 |kptr->en|try);...|
|00001520| 09 62 72 65 61 6b 3b 0d | 09 09 7d 0d 09 09 63 61 |.break;.|..}...ca|
|00001530| 73 65 20 52 53 4c 54 5f | 46 49 4c 45 3a 20 7b 0d |se RSLT_|FILE: {.|
|00001540| 09 09 09 73 77 69 74 63 | 68 20 28 74 6b 70 74 72 |...switc|h (tkptr|
|00001550| 2d 3e 65 6e 74 72 79 29 | 20 7b 0d 09 09 09 09 63 |->entry)| {.....c|
|00001560| 61 73 65 20 52 46 5f 53 | 41 56 45 3a 0d 09 09 09 |ase RF_S|AVE:....|
|00001570| 09 63 61 73 65 20 52 46 | 5f 53 41 56 45 41 53 3a |.case RF|_SAVEAS:|
|00001580| 0d 09 09 09 09 63 61 73 | 65 20 52 46 5f 41 50 50 |.....cas|e RF_APP|
|00001590| 45 4e 44 3a 0d 09 09 09 | 09 63 61 73 65 20 52 46 |END:....|.case RF|
|000015a0| 5f 41 50 50 45 4e 44 54 | 4f 3a 20 7b 0d 09 09 09 |_APPENDT|O: {....|
|000015b0| 09 09 73 61 76 65 74 65 | 78 74 28 74 6b 70 74 72 |..savete|xt(tkptr|
|000015c0| 2d 3e 65 6e 74 72 79 29 | 3b 0d 09 09 09 09 09 69 |->entry)|;......i|
|000015d0| 66 20 28 65 64 72 65 73 | 65 74 73 65 6c 65 63 74 |f (edres|etselect|
|000015e0| 29 0d 09 09 09 09 09 09 | 73 65 6c 72 65 73 65 74 |).......|selreset|
|000015f0| 28 65 6d 64 70 29 3b 0d | 09 09 09 09 09 09 0d 09 |(emdp);.|........|
|00001600| 09 09 09 09 62 72 65 61 | 6b 3b 0d 09 09 09 09 7d |....brea|k;.....}|
|00001610| 0d 09 09 09 09 63 61 73 | 65 20 52 46 5f 50 52 49 |.....cas|e RF_PRI|
|00001620| 4e 54 44 52 41 46 54 3a | 20 7b 0d 09 09 09 09 09 |NTDRAFT:| {......|
|00001630| 70 72 69 6e 74 74 65 78 | 74 28 74 6b 70 74 72 2d |printtex|t(tkptr-|
|00001640| 3e 65 6e 74 72 79 2c 20 | 46 41 4c 53 45 29 3b 0d |>entry, |FALSE);.|
|00001650| 09 09 09 09 09 69 66 20 | 28 65 64 72 65 73 65 74 |.....if |(edreset|
|00001660| 73 65 6c 65 63 74 29 0d | 09 09 09 09 09 09 73 65 |select).|......se|
|00001670| 6c 72 65 73 65 74 28 65 | 6d 64 70 29 3b 0d 09 09 |lreset(e|mdp);...|
|00001680| 09 09 09 09 0d 09 09 09 | 09 09 62 72 65 61 6b 3b |........|..break;|
|00001690| 0d 09 09 09 09 7d 0d 09 | 09 09 09 63 61 73 65 20 |.....}..|...case |
|000016a0| 52 46 5f 50 52 49 4e 54 | 54 45 58 54 3a 0d 09 09 |RF_PRINT|TEXT:...|
|000016b0| 09 09 63 61 73 65 20 52 | 46 5f 50 52 49 4e 54 53 |..case R|F_PRINTS|
|000016c0| 43 52 45 45 4e 3a 0d 09 | 09 09 09 63 61 73 65 20 |CREEN:..|...case |
|000016d0| 52 46 5f 50 52 49 4e 54 | 53 43 52 41 50 3a 20 7b |RF_PRINT|SCRAP: {|
|000016e0| 0d 09 09 09 09 09 51 44 | 70 72 69 6e 74 74 65 78 |......QD|printtex|
|000016f0| 74 28 74 6b 70 74 72 2d | 3e 65 6e 74 72 79 2c 20 |t(tkptr-|>entry, |
|00001700| 46 41 4c 53 45 29 3b 0d | 09 09 09 09 09 69 66 20 |FALSE);.|.....if |
|00001710| 28 65 64 72 65 73 65 74 | 73 65 6c 65 63 74 29 0d |(edreset|select).|
|00001720| 09 09 09 09 09 09 73 65 | 6c 72 65 73 65 74 28 65 |......se|lreset(e|
|00001730| 6d 64 70 29 3b 0d 09 09 | 09 09 09 09 0d 09 09 09 |mdp);...|........|
|00001740| 09 09 62 72 65 61 6b 3b | 0d 09 09 09 09 7d 0d 09 |..break;|.....}..|
|00001750| 09 09 09 63 61 73 65 20 | 52 46 5f 4e 41 4d 45 3a |...case |RF_NAME:|
|00001760| 20 7b 0d 23 69 66 64 65 | 66 20 52 46 5f 4e 41 4d | {.#ifde|f RF_NAM|
|00001770| 45 44 4f 4e 45 0d 09 09 | 09 09 09 69 6e 74 20 6e |EDONE...|...int n|
|00001780| 61 6d 65 63 6f 75 6e 74 | 20 3d 20 30 3b 0d 09 09 |amecount| = 0;...|
|00001790| 09 09 09 0d 09 09 09 09 | 09 77 68 69 6c 65 20 28 |........|.while (|
|000017a0| 74 77 70 2d 3e 71 5f 63 | 6e 74 20 3e 20 30 29 20 |twp->q_c|nt > 0) |
|000017b0| 7b 0d 09 09 09 0d 09 09 | 09 09 09 09 74 68 65 61 |{.......|....thea|
|000017c0| 63 74 20 3d 20 67 65 74 | 61 63 74 69 6f 6e 28 29 |ct = get|action()|
|000017d0| 3b 0d 09 09 09 09 09 09 | 69 66 20 28 28 2a 74 77 |;.......|if ((*tw|
|000017e0| 70 2d 3e 64 6f 74 6f 6b | 65 6e 29 28 74 68 65 61 |p->dotok|en)(thea|
|000017f0| 63 74 29 29 20 7b 0d 09 | 09 09 09 09 09 09 75 6e |ct)) {..|......un|
|00001800| 67 65 74 61 63 74 69 6f | 6e 28 74 68 65 61 63 74 |getactio|n(theact|
|00001810| 29 3b 0d 09 09 09 09 09 | 09 09 62 72 65 61 6b 3b |);......|..break;|
|00001820| 0d 09 09 09 09 09 09 7d | 0d 09 09 09 09 09 7d 0d |.......}|......}.|
|00001830| 23 65 6e 64 69 66 0d 09 | 09 09 09 09 62 72 65 61 |#endif..|....brea|
|00001840| 6b 3b 0d 09 09 09 09 7d | 0d 09 09 09 7d 0d 09 09 |k;.....}|....}...|
|00001850| 09 62 72 65 61 6b 3b 0d | 09 09 7d 0d 09 09 63 61 |.break;.|..}...ca|
|00001860| 73 65 20 52 53 4c 54 5f | 53 45 4c 31 3a 20 7b 0d |se RSLT_|SEL1: {.|
|00001870| 09 09 09 65 6d 64 70 2d | 3e 6e 73 65 6c 79 73 74 |...emdp-|>nselyst|
|00001880| 61 72 74 20 3d 20 74 6b | 70 74 72 2d 3e 65 6e 74 |art = tk|ptr->ent|
|00001890| 72 79 3b 0d 09 09 09 62 | 72 65 61 6b 3b 0d 09 09 |ry;....b|reak;...|
|000018a0| 7d 0d 09 09 63 61 73 65 | 20 52 53 4c 54 5f 53 45 |}...case| RSLT_SE|
|000018b0| 4c 32 3a 20 7b 0d 09 09 | 09 65 6d 64 70 2d 3e 6e |L2: {...|.emdp->n|
|000018c0| 73 65 6c 78 73 74 61 72 | 74 20 3d 20 74 6b 70 74 |selxstar|t = tkpt|
|000018d0| 72 2d 3e 65 6e 74 72 79 | 3b 0d 09 09 09 62 72 65 |r->entry|;....bre|
|000018e0| 61 6b 3b 0d 09 09 7d 0d | 09 09 63 61 73 65 20 52 |ak;...}.|..case R|
|000018f0| 53 4c 54 5f 53 45 4c 33 | 3a 20 7b 0d 09 09 09 65 |SLT_SEL3|: {....e|
|00001900| 6d 64 70 2d 3e 6e 73 65 | 6c 79 65 6e 64 20 3d 20 |mdp->nse|lyend = |
|00001910| 74 6b 70 74 72 2d 3e 65 | 6e 74 72 79 3b 0d 09 09 |tkptr->e|ntry;...|
|00001920| 09 62 72 65 61 6b 3b 0d | 09 09 7d 0d 09 09 63 61 |.break;.|..}...ca|
|00001930| 73 65 20 52 53 4c 54 5f | 53 45 4c 34 3a 0d 09 09 |se RSLT_|SEL4:...|
|00001940| 7b 0d 09 09 09 65 6d 64 | 70 2d 3e 6e 73 65 6c 78 |{....emd|p->nselx|
|00001950| 65 6e 64 20 3d 20 74 6b | 70 74 72 2d 3e 65 6e 74 |end = tk|ptr->ent|
|00001960| 72 79 3b 0d 09 09 09 2f | 2a 20 61 20 73 65 6c 65 |ry;..../|* a sele|
|00001970| 63 74 69 6f 6e 20 68 61 | 73 20 70 72 65 73 75 6d |ction ha|s presum|
|00001980| 61 62 6c 79 20 6e 6f 77 | 20 62 65 65 6e 20 64 65 |ably now| been de|
|00001990| 66 69 6e 65 64 20 2a 2f | 0d 09 09 09 0d 09 09 09 |fined */|........|
|000019a0| 73 65 6c 72 65 73 65 74 | 28 65 6d 64 70 29 3b 0d |selreset|(emdp);.|
|000019b0| 09 09 09 73 65 6c 73 65 | 74 28 65 6d 64 70 2d 3e |...selse|t(emdp->|
|000019c0| 6e 73 65 6c 79 73 74 61 | 72 74 2c 20 65 6d 64 70 |nselysta|rt, emdp|
|000019d0| 2d 3e 6e 73 65 6c 78 73 | 74 61 72 74 2c 20 65 6d |->nselxs|tart, em|
|000019e0| 64 70 2d 3e 6e 73 65 6c | 79 65 6e 64 2c 20 65 6d |dp->nsel|yend, em|
|000019f0| 64 70 2d 3e 6e 73 65 6c | 78 65 6e 64 29 3b 0d 0d |dp->nsel|xend);..|
|00001a00| 09 09 09 73 65 6c 69 6e | 76 65 72 74 28 65 6d 64 |...selin|vert(emd|
|00001a10| 70 29 3b 0d 09 09 09 65 | 6d 64 70 2d 3e 73 65 6c |p);....e|mdp->sel|
|00001a20| 72 65 63 74 76 69 73 20 | 3d 20 54 52 55 45 3b 0d |rectvis |= TRUE;.|
|00001a30| 0d 09 09 09 65 6d 64 70 | 2d 3e 6e 73 65 6c 79 73 |....emdp|->nselys|
|00001a40| 74 61 72 74 20 3d 20 30 | 3b 0d 09 09 09 65 6d 64 |tart = 0|;....emd|
|00001a50| 70 2d 3e 6e 73 65 6c 78 | 73 74 61 72 74 20 3d 20 |p->nselx|start = |
|00001a60| 30 3b 0d 09 09 09 65 6d | 64 70 2d 3e 6e 73 65 6c |0;....em|dp->nsel|
|00001a70| 79 65 6e 64 20 3d 20 30 | 3b 0d 09 09 09 65 6d 64 |yend = 0|;....emd|
|00001a80| 70 2d 3e 6e 73 65 6c 78 | 65 6e 64 20 3d 20 30 3b |p->nselx|end = 0;|
|00001a90| 0d 09 09 09 62 72 65 61 | 6b 3b 0d 09 09 7d 0d 09 |....brea|k;...}..|
|00001aa0| 09 63 61 73 65 20 52 53 | 4c 54 5f 57 49 4e 44 3a |.case RS|LT_WIND:|
|00001ab0| 20 7b 0d 09 09 09 2f 2a | 20 73 65 6c 65 63 74 20 | {..../*| select |
|00001ac0| 74 68 65 20 77 69 6e 64 | 6f 77 20 63 6f 72 72 65 |the wind|ow corre|
|00001ad0| 73 70 6f 6e 64 69 6e 67 | 20 74 6f 20 74 68 65 20 |sponding| to the |
|00001ae0| 69 74 68 20 65 6e 74 72 | 79 20 69 6e 20 74 68 65 |ith entr|y in the|
|00001af0| 20 6d 65 6e 75 20 2a 2f | 0d 09 09 09 77 69 6e 64 | menu */|....wind|
|00001b00| 6d 65 6e 75 73 65 6c 65 | 63 74 28 28 73 68 6f 72 |menusele|ct((shor|
|00001b10| 74 29 20 74 6b 70 74 72 | 2d 3e 65 6e 74 72 79 29 |t) tkptr|->entry)|
|00001b20| 3b 0d 09 09 09 62 72 65 | 61 6b 3b 0d 09 09 7d 0d |;....bre|ak;...}.|
|00001b30| 09 09 64 65 66 61 75 6c | 74 3a 20 7b 0d 09 09 09 |..defaul|t: {....|
|00001b40| 72 65 74 75 72 6e 28 2d | 31 29 3b 0d 09 09 7d 0d |return(-|1);...}.|
|00001b50| 09 7d 0d 09 72 65 74 75 | 72 6e 28 30 29 3b 09 0d |.}..retu|rn(0);..|
|00001b60| 7d 0d 0d 0d 73 74 64 65 | 64 69 74 28 61 63 74 69 |}...stde|dit(acti|
|00001b70| 6f 6e 29 0d 75 6e 73 69 | 67 6e 65 64 20 63 68 61 |on).unsi|gned cha|
|00001b80| 72 20 61 63 74 69 6f 6e | 3b 0d 7b 0d 09 6c 6f 6e |r action|;.{..lon|
|00001b90| 67 20 6c 65 6e 3b 0d 09 | 0d 09 73 77 69 74 63 68 |g len;..|..switch|
|00001ba0| 20 28 61 63 74 69 6f 6e | 29 20 7b 0d 09 09 63 61 | (action|) {...ca|
|00001bb0| 73 65 20 45 44 5f 53 54 | 44 4d 4f 44 45 3a 20 7b |se ED_ST|DMODE: {|
|00001bc0| 0d 09 09 09 65 6d 64 70 | 2d 3e 63 6f 70 79 74 61 |....emdp|->copyta|
|00001bd0| 62 6c 65 20 3d 20 46 41 | 4c 53 45 3b 0d 09 09 09 |ble = FA|LSE;....|
|00001be0| 62 72 65 61 6b 3b 0d 09 | 09 7d 0d 09 09 63 61 73 |break;..|.}...cas|
|00001bf0| 65 20 45 44 5f 54 41 42 | 4c 45 4d 4f 44 45 3a 20 |e ED_TAB|LEMODE: |
|00001c00| 7b 0d 09 09 09 2f 2a 20 | 65 6c 69 64 65 20 74 61 |{..../* |elide ta|
|00001c10| 62 73 20 2a 2f 0d 09 09 | 09 65 6d 64 70 2d 3e 63 |bs */...|.emdp->c|
|00001c20| 6f 70 79 74 61 62 6c 65 | 20 3d 20 54 52 55 45 3b |opytable| = TRUE;|
|00001c30| 0d 09 09 09 62 72 65 61 | 6b 3b 0d 09 09 7d 0d 09 |....brea|k;...}..|
|00001c40| 09 63 61 73 65 20 45 44 | 5f 57 4f 52 44 53 45 4c |.case ED|_WORDSEL|
|00001c50| 45 43 54 3a 20 7b 0d 09 | 09 09 2f 2a 20 73 65 6c |ECT: {..|../* sel|
|00001c60| 65 63 74 20 74 68 65 20 | 77 6f 72 64 20 61 72 6f |ect the |word aro|
|00001c70| 75 6e 64 20 74 68 65 20 | 63 75 72 73 6f 72 20 70 |und the |cursor p|
|00001c80| 6f 73 69 74 69 6f 6e 20 | 2a 2f 0d 09 09 09 77 6f |osition |*/....wo|
|00001c90| 72 64 73 65 6c 65 63 74 | 28 29 3b 0d 09 09 09 62 |rdselect|();....b|
|00001ca0| 72 65 61 6b 3b 0d 09 09 | 7d 0d 09 09 63 61 73 65 |reak;...|}...case|
|00001cb0| 20 45 44 5f 53 45 4c 52 | 45 53 45 54 3a 20 7b 0d | ED_SELR|ESET: {.|
|00001cc0| 09 09 09 69 66 20 28 65 | 6d 77 69 6e 64 6f 77 29 |...if (e|mwindow)|
|00001cd0| 20 7b 0d 09 09 09 09 73 | 65 6c 72 65 73 65 74 28 | {.....s|elreset(|
|00001ce0| 65 6d 64 70 29 3b 0d 09 | 09 09 7d 0d 09 09 09 62 |emdp);..|..}....b|
|00001cf0| 72 65 61 6b 3b 0d 09 09 | 7d 0d 09 09 63 61 73 65 |reak;...|}...case|
|00001d00| 20 45 44 5f 53 45 4c 41 | 4c 4c 3a 20 7b 0d 09 09 | ED_SELA|LL: {...|
|00001d10| 09 69 66 20 28 65 6d 77 | 69 6e 64 6f 77 29 20 7b |.if (emw|indow) {|
|00001d20| 0d 23 69 66 64 65 66 20 | 44 4f 54 45 58 54 45 44 |.#ifdef |DOTEXTED|
|00001d30| 49 54 0d 2f 2a 20 6d 61 | 63 72 6f 73 20 73 68 6f |IT./* ma|cros sho|
|00001d40| 75 6c 64 20 70 72 6f 62 | 61 62 6c 79 20 6e 6f 74 |uld prob|ably not|
|00001d50| 20 6d 75 63 6b 20 77 69 | 74 68 20 74 68 65 20 54 | muck wi|th the T|
|00001d60| 45 20 77 69 6e 64 6f 77 | 20 2a 2f 0d 09 09 09 09 |E window| */.....|
|00001d70| 69 66 20 28 65 6d 64 70 | 2d 3e 65 64 69 74 29 20 |if (emdp|->edit) |
|00001d80| 7b 0d 09 09 09 09 09 74 | 65 73 65 74 73 65 6c 28 |{......t|esetsel(|
|00001d90| 20 28 6c 6f 6e 67 29 20 | 30 2c 20 28 6c 6f 6e 67 | (long) |0, (long|
|00001da0| 29 20 28 2a 65 6d 64 70 | 2d 3e 74 65 78 74 68 61 |) (*emdp|->textha|
|00001db0| 6e 64 29 2d 3e 74 65 4c | 65 6e 67 74 68 2c 20 65 |nd)->teL|ength, e|
|00001dc0| 6d 64 70 2d 3e 74 65 78 | 74 68 61 6e 64 29 3b 0d |mdp->tex|thand);.|
|00001dd0| 09 09 09 09 7d 0d 09 09 | 09 09 65 6c 73 65 20 7b |....}...|..else {|
|00001de0| 0d 23 65 6e 64 69 66 0d | 09 09 09 09 09 73 65 6c |.#endif.|.....sel|
|00001df0| 72 65 73 65 74 28 65 6d | 64 70 29 3b 0d 09 09 09 |reset(em|dp);....|
|00001e00| 09 09 73 65 6c 73 65 74 | 28 30 2c 20 30 2c 20 32 |..selset|(0, 0, 2|
|00001e10| 34 2c 20 30 29 3b 0d 09 | 09 09 09 09 73 65 6c 69 |4, 0);..|....seli|
|00001e20| 6e 76 65 72 74 28 65 6d | 64 70 29 3b 0d 09 09 09 |nvert(em|dp);....|
|00001e30| 09 09 65 6d 64 70 2d 3e | 73 65 6c 72 65 63 74 76 |..emdp->|selrectv|
|00001e40| 69 73 20 3d 20 54 52 55 | 45 3b 0d 23 69 66 64 65 |is = TRU|E;.#ifde|
|00001e50| 66 20 44 4f 54 45 58 54 | 45 44 49 54 09 09 09 0d |f DOTEXT|EDIT....|
|00001e60| 09 09 09 09 7d 0d 23 65 | 6e 64 69 66 0d 09 09 09 |....}.#e|ndif....|
|00001e70| 7d 0d 09 09 09 62 72 65 | 61 6b 3b 0d 09 09 7d 0d |}....bre|ak;...}.|
|00001e80| 09 09 63 61 73 65 20 45 | 44 5f 43 55 54 3a 20 7b |..case E|D_CUT: {|
|00001e90| 0d 23 69 66 64 65 66 20 | 44 4f 54 45 58 54 45 44 |.#ifdef |DOTEXTED|
|00001ea0| 49 54 09 09 09 0d 09 09 | 09 69 66 20 28 65 6d 64 |IT......|.if (emd|
|00001eb0| 70 2d 3e 65 64 69 74 29 | 20 7b 0d 09 09 09 09 74 |p->edit)| {.....t|
|00001ec0| 65 78 74 77 63 75 74 28 | 65 6d 64 70 29 3b 0d 09 |extwcut(|emdp);..|
|00001ed0| 09 09 09 62 72 65 61 6b | 3b 0d 09 09 09 7d 0d 23 |...break|;....}.#|
|00001ee0| 65 6e 64 69 66 0d 09 09 | 09 62 72 65 61 6b 3b 0d |endif...|.break;.|
|00001ef0| 09 09 7d 0d 23 69 66 64 | 65 66 20 55 53 45 54 45 |..}.#ifd|ef USETE|
|00001f00| 58 54 57 49 4e 44 4f 57 | 53 0d 09 09 63 61 73 65 |XTWINDOW|S...case|
|00001f10| 20 45 44 5f 41 50 50 45 | 4e 44 3a 20 7b 0d 09 09 | ED_APPE|ND: {...|
|00001f20| 09 2f 2a 20 61 70 70 65 | 6e 64 20 73 65 6c 65 63 |./* appe|nd selec|
|00001f30| 74 69 6f 6e 20 74 6f 20 | 74 65 78 74 20 77 69 6e |tion to |text win|
|00001f40| 64 6f 77 20 2a 2f 0d 09 | 09 09 50 74 72 20 63 6f |dow */..|..Ptr co|
|00001f50| 70 79 70 3b 0d 0d 09 09 | 09 69 66 20 28 28 6c 65 |pyp;....|.if ((le|
|00001f60| 6e 20 3d 20 67 65 74 73 | 65 6c 65 63 74 69 6f 6e |n = gets|election|
|00001f70| 28 26 63 6f 70 79 70 29 | 29 20 3d 3d 20 30 29 20 |(©p)|) == 0) |
|00001f80| 7b 0d 09 09 09 09 62 72 | 65 61 6b 3b 0d 09 09 09 |{.....br|eak;....|
|00001f90| 7d 0d 09 09 09 69 66 20 | 28 21 6d 65 6d 74 65 73 |}....if |(!memtes|
|00001fa0| 74 28 6c 65 6e 2c 20 63 | 6f 70 79 65 72 72 29 29 |t(len, c|opyerr))|
|00001fb0| 20 7b 0d 09 09 09 09 2f | 2a 20 6e 6f 74 20 65 6e | {...../|* not en|
|00001fc0| 6f 75 67 68 20 6d 65 6d | 6f 72 79 20 66 6f 72 20 |ough mem|ory for |
|00001fd0| 6f 70 65 72 61 74 69 6f | 6e 20 2a 2f 0d 09 09 09 |operatio|n */....|
|00001fe0| 09 44 69 73 70 6f 73 50 | 74 72 28 63 6f 70 79 70 |.DisposP|tr(copyp|
|00001ff0| 29 3b 0d 09 09 09 09 62 | 72 65 61 6b 3b 0d 09 09 |);.....b|reak;...|
|00002000| 09 7d 0d 09 09 09 74 65 | 78 74 77 61 70 70 65 6e |.}....te|xtwappen|
|00002010| 64 28 63 6f 70 79 70 2c | 20 6c 65 6e 29 3b 0d 09 |d(copyp,| len);..|
|00002020| 09 09 44 69 73 70 6f 73 | 50 74 72 28 63 6f 70 79 |..Dispos|Ptr(copy|
|00002030| 70 29 3b 0d 09 09 09 0d | 09 09 09 69 66 20 28 65 |p);.....|...if (e|
|00002040| 64 72 65 73 65 74 73 65 | 6c 65 63 74 29 0d 09 09 |dresetse|lect)...|
|00002050| 09 09 73 65 6c 72 65 73 | 65 74 28 65 6d 64 70 29 |..selres|et(emdp)|
|00002060| 3b 0d 09 09 09 09 0d 09 | 09 09 62 72 65 61 6b 3b |;.......|..break;|
|00002070| 0d 09 09 7d 0d 23 65 6c | 73 65 0d 09 09 09 2f 2a |...}.#el|se..../*|
|00002080| 20 77 68 65 6e 20 75 73 | 69 6e 67 20 74 68 65 20 | when us|ing the |
|00002090| 43 6c 69 70 62 6f 61 72 | 64 20 79 6f 75 20 6d 75 |Clipboar|d you mu|
|000020a0| 73 74 20 68 69 74 20 53 | 79 73 74 65 6d 45 64 69 |st hit S|ystemEdi|
|000020b0| 74 28 29 20 2a 2f 0d 09 | 09 63 61 73 65 20 45 44 |t() */..|.case ED|
|000020c0| 5f 41 50 50 45 4e 44 3a | 0d 23 65 6e 64 69 66 0d |_APPEND:|.#endif.|
|000020d0| 09 09 63 61 73 65 20 45 | 44 5f 43 4f 50 59 3a 20 |..case E|D_COPY: |
|000020e0| 0d 09 09 7b 0d 09 09 09 | 2f 2a 20 63 6f 70 79 20 |...{....|/* copy |
|000020f0| 74 68 65 20 77 68 6f 6c | 65 20 73 63 72 65 65 6e |the whol|e screen|
|00002100| 20 69 6e 74 6f 20 74 68 | 65 20 73 79 73 74 65 6d | into th|e system|
|00002110| 20 73 63 72 61 70 20 2a | 2f 0d 09 09 09 50 74 72 | scrap *|/....Ptr|
|00002120| 20 63 6f 70 79 70 3b 0d | 23 69 66 64 65 66 20 44 | copyp;.|#ifdef D|
|00002130| 4f 54 45 58 54 45 44 49 | 54 09 09 09 0d 09 09 09 |OTEXTEDI|T.......|
|00002140| 69 66 20 28 65 6d 64 70 | 2d 3e 65 64 69 74 29 20 |if (emdp|->edit) |
|00002150| 7b 0d 09 09 09 09 2f 2a | 20 77 65 27 72 65 20 69 |{...../*| we're i|
|00002160| 6e 20 74 65 78 74 20 65 | 64 69 74 6f 72 2c 20 64 |n text e|ditor, d|
|00002170| 6f 20 69 74 20 74 68 65 | 20 65 61 73 79 20 77 61 |o it the| easy wa|
|00002180| 79 20 54 4f 44 4f 20 73 | 68 6f 75 6c 64 20 73 75 |y TODO s|hould su|
|00002190| 70 70 6f 72 74 20 61 70 | 70 65 6e 64 20 2a 2f 0d |pport ap|pend */.|
|000021a0| 09 09 09 09 74 65 78 74 | 77 63 6f 70 79 28 65 6d |....text|wcopy(em|
|000021b0| 64 70 29 3b 0d 09 09 09 | 09 62 72 65 61 6b 3b 0d |dp);....|.break;.|
|000021c0| 09 09 09 7d 0d 23 65 6e | 64 69 66 0d 09 09 09 69 |...}.#en|dif....i|
|000021d0| 66 20 28 6d 66 70 72 65 | 73 65 6e 74 29 0d 09 09 |f (mfpre|sent)...|
|000021e0| 09 09 2f 2a 20 6d 61 6b | 65 20 73 75 72 65 20 6d |../* mak|e sure m|
|000021f0| 66 20 75 70 64 61 74 65 | 73 20 61 6c 6c 20 63 6c |f update|s all cl|
|00002200| 69 65 6e 74 27 73 20 73 | 63 72 61 70 20 69 6e 66 |ient's s|crap inf|
|00002210| 6f 20 2a 2f 0d 09 09 09 | 09 53 79 73 74 65 6d 45 |o */....|.SystemE|
|00002220| 64 69 74 28 45 44 43 4f | 50 59 20 2d 20 31 29 3b |dit(EDCO|PY - 1);|
|00002230| 0d 0d 09 09 09 69 66 20 | 28 21 73 63 72 61 70 7a |.....if |(!scrapz|
|00002240| 65 72 6f 65 64 29 20 7b | 0d 09 09 09 09 2f 2a 20 |eroed) {|...../* |
|00002250| 7a 65 72 6f 20 74 68 65 | 20 73 63 72 61 70 20 74 |zero the| scrap t|
|00002260| 68 65 20 66 69 72 73 74 | 20 74 69 6d 65 20 74 68 |he first| time th|
|00002270| 72 6f 75 67 68 20 2a 2f | 0d 09 09 09 09 73 63 72 |rough */|.....scr|
|00002280| 61 70 7a 65 72 6f 65 64 | 20 3d 20 54 52 55 45 3b |apzeroed| = TRUE;|
|00002290| 0d 09 09 09 09 73 63 72 | 61 70 7a 65 72 6f 28 29 |.....scr|apzero()|
|000022a0| 3b 0d 09 09 09 7d 0d 09 | 09 09 0d 09 09 09 69 66 |;....}..|......if|
|000022b0| 20 28 61 63 74 69 6f 6e | 20 3d 3d 20 45 44 5f 43 | (action| == ED_C|
|000022c0| 4f 50 59 29 0d 09 09 09 | 09 73 63 72 61 70 7a 65 |OPY)....|.scrapze|
|000022d0| 72 6f 28 29 3b 0d 09 09 | 09 09 2f 2a 20 69 66 20 |ro();...|../* if |
|000022e0| 73 63 72 61 70 20 69 73 | 20 6e 6f 74 20 7a 65 72 |scrap is| not zer|
|000022f0| 6f 65 64 2c 20 70 75 74 | 73 63 72 61 70 20 77 69 |oed, put|scrap wi|
|00002300| 6c 6c 20 61 70 70 65 6e | 64 20 2a 2f 0d 09 09 09 |ll appen|d */....|
|00002310| 0d 09 09 09 69 66 20 28 | 28 6c 65 6e 20 3d 20 67 |....if (|(len = g|
|00002320| 65 74 73 65 6c 65 63 74 | 69 6f 6e 28 26 63 6f 70 |etselect|ion(&cop|
|00002330| 79 70 29 29 20 3d 3d 20 | 30 29 20 7b 0d 09 09 09 |yp)) == |0) {....|
|00002340| 09 62 72 65 61 6b 3b 0d | 09 09 09 7d 0d 09 09 09 |.break;.|...}....|
|00002350| 0d 09 09 09 69 66 20 28 | 21 6d 65 6d 74 65 73 74 |....if (|!memtest|
|00002360| 28 6c 65 6e 2c 20 63 6f | 70 79 65 72 72 29 29 20 |(len, co|pyerr)) |
|00002370| 7b 0d 09 09 09 09 2f 2a | 20 6e 6f 74 20 65 6e 6f |{...../*| not eno|
|00002380| 75 67 68 20 6d 65 6d 6f | 72 79 20 66 6f 72 20 6f |ugh memo|ry for o|
|00002390| 70 65 72 61 74 69 6f 6e | 20 2a 2f 0d 09 09 09 09 |peration| */.....|
|000023a0| 44 69 73 70 6f 73 50 74 | 72 28 63 6f 70 79 70 29 |DisposPt|r(copyp)|
|000023b0| 3b 0d 09 09 09 09 62 72 | 65 61 6b 3b 0d 09 09 09 |;.....br|eak;....|
|000023c0| 7d 0d 23 69 66 64 65 66 | 20 55 53 45 54 45 58 54 |}.#ifdef| USETEXT|
|000023d0| 57 49 4e 44 4f 57 53 0d | 09 09 09 50 75 74 53 63 |WINDOWS.|...PutSc|
|000023e0| 72 61 70 28 6c 65 6e 2c | 20 27 54 45 58 54 27 2c |rap(len,| 'TEXT',|
|000023f0| 20 63 6f 70 79 70 29 3b | 0d 23 65 6c 73 65 0d 09 | copyp);|.#else..|
|00002400| 09 09 70 75 74 74 65 78 | 74 73 63 72 61 70 28 63 |..puttex|tscrap(c|
|00002410| 6f 70 79 70 2c 20 6c 65 | 6e 29 3b 0d 23 65 6e 64 |opyp, le|n);.#end|
|00002420| 69 66 0d 09 09 09 44 69 | 73 70 6f 73 50 74 72 28 |if....Di|sposPtr(|
|00002430| 63 6f 70 79 70 29 3b 0d | 0d 09 09 09 69 66 20 28 |copyp);.|....if (|
|00002440| 65 64 72 65 73 65 74 73 | 65 6c 65 63 74 29 0d 09 |edresets|elect)..|
|00002450| 09 09 09 73 65 6c 72 65 | 73 65 74 28 65 6d 64 70 |...selre|set(emdp|
|00002460| 29 3b 0d 09 09 09 09 0d | 09 09 09 62 72 65 61 6b |);......|...break|
|00002470| 3b 0d 09 09 7d 0d 09 09 | 63 61 73 65 20 45 44 5f |;...}...|case ED_|
|00002480| 50 41 53 54 45 3a 20 7b | 0d 23 69 66 64 65 66 20 |PASTE: {|.#ifdef |
|00002490| 44 4f 54 45 58 54 45 44 | 49 54 09 09 09 0d 09 09 |DOTEXTED|IT......|
|000024a0| 09 69 66 20 28 65 6d 64 | 70 2d 3e 65 64 69 74 29 |.if (emd|p->edit)|
|000024b0| 20 7b 0d 09 09 09 09 74 | 65 78 74 77 70 61 73 74 | {.....t|extwpast|
|000024c0| 65 28 65 6d 64 70 29 3b | 0d 09 09 09 7d 0d 09 09 |e(emdp);|....}...|
|000024d0| 09 65 6c 73 65 0d 23 65 | 6e 64 69 66 0d 09 09 09 |.else.#e|ndif....|
|000024e0| 09 72 65 74 75 72 6e 28 | 54 52 55 45 29 3b 0d 09 |.return(|TRUE);..|
|000024f0| 09 09 62 72 65 61 6b 3b | 0d 09 09 7d 0d 09 09 64 |..break;|...}...d|
|00002500| 65 66 61 75 6c 74 3a 20 | 0d 09 09 09 72 65 74 75 |efault: |....retu|
|00002510| 72 6e 28 54 52 55 45 29 | 3b 0d 09 7d 0d 09 72 65 |rn(TRUE)|;..}..re|
|00002520| 74 75 72 6e 28 46 41 4c | 53 45 29 3b 0d 7d 0d 0d |turn(FAL|SE);.}..|
|00002530| 0d 2f 2a 20 74 6f 6b 65 | 6e 20 65 72 72 6f 72 20 |./* toke|n error |
|00002540| 72 65 70 6f 72 74 69 6e | 67 20 72 6f 75 74 69 6e |reportin|g routin|
|00002550| 65 73 20 2a 2f 0d 2f 2a | 20 72 65 70 6f 72 74 20 |es */./*| report |
|00002560| 61 6e 20 65 72 72 6f 72 | 20 69 6e 20 74 68 65 20 |an error| in the |
|00002570| 63 6c 61 73 73 20 2a 2f | 0d 0d 63 6c 61 73 73 65 |class */|..classe|
|00002580| 72 72 28 74 6b 70 74 72 | 29 0d 73 74 72 75 63 74 |rr(tkptr|).struct|
|00002590| 20 74 6f 6b 65 6e 20 2a | 20 74 6b 70 74 72 3b 0d | token *| tkptr;.|
|000025a0| 7b 0d 09 63 68 61 72 20 | 62 61 64 63 6c 61 73 73 |{..char |badclass|
|000025b0| 73 74 72 5b 31 34 30 5d | 3b 0d 0d 09 73 70 72 69 |str[140]|;...spri|
|000025c0| 6e 74 66 28 62 61 64 63 | 6c 61 73 73 73 74 72 2c |ntf(badc|lassstr,|
|000025d0| 20 22 43 6f 6d 6d 61 6e | 64 20 27 25 63 25 63 27 | "Comman|d '%c%c'|
|000025e0| 3a 20 20 55 6e 6b 6e 6f | 77 6e 20 63 6f 6d 6d 61 |: Unkno|wn comma|
|000025f0| 6e 64 20 63 6c 61 73 73 | 20 27 25 63 27 20 28 64 |nd class| '%c' (d|
|00002600| 65 63 69 6d 61 6c 20 25 | 75 29 22 2c 20 74 6b 70 |ecimal %|u)", tkp|
|00002610| 74 72 2d 3e 63 6c 61 73 | 73 2c 20 74 6b 70 74 72 |tr->clas|s, tkptr|
|00002620| 2d 3e 65 6e 74 72 79 2c | 20 74 6b 70 74 72 2d 3e |->entry,| tkptr->|
|00002630| 63 6c 61 73 73 2c 20 28 | 69 6e 74 29 20 74 6b 70 |class, (|int) tkp|
|00002640| 74 72 2d 3e 63 6c 61 73 | 73 29 3b 0d 09 53 65 74 |tr->clas|s);..Set|
|00002650| 44 41 46 6f 6e 74 28 28 | 73 68 6f 72 74 29 20 4f |DAFont((|short) O|
|00002660| 55 52 43 48 49 43 41 47 | 4f 29 3b 0d 09 65 72 72 |URCHICAG|O);..err|
|00002670| 6f 72 28 62 61 64 63 6c | 61 73 73 73 74 72 29 3b |or(badcl|assstr);|
|00002680| 0d 09 53 65 74 44 41 46 | 6f 6e 74 28 28 73 68 6f |..SetDAF|ont((sho|
|00002690| 72 74 29 20 73 79 73 74 | 65 6d 46 6f 6e 74 29 3b |rt) syst|emFont);|
|000026a0| 0d 7d 0d 0d 2f 2a 20 72 | 65 70 6f 72 74 20 61 6e |.}../* r|eport an|
|000026b0| 20 65 72 72 6f 72 20 69 | 6e 20 74 68 65 20 65 6e | error i|n the en|
|000026c0| 74 72 79 20 2a 2f 0d 0d | 65 6e 74 72 79 65 72 72 |try */..|entryerr|
|000026d0| 28 74 6b 70 74 72 29 0d | 73 74 72 75 63 74 20 74 |(tkptr).|struct t|
|000026e0| 6f 6b 65 6e 20 2a 20 74 | 6b 70 74 72 3b 0d 7b 0d |oken * t|kptr;.{.|
|000026f0| 09 63 68 61 72 20 62 61 | 64 63 6c 61 73 73 73 74 |.char ba|dclassst|
|00002700| 72 5b 31 34 30 5d 3b 0d | 0d 09 73 70 72 69 6e 74 |r[140];.|..sprint|
|00002710| 66 28 62 61 64 63 6c 61 | 73 73 73 74 72 2c 20 22 |f(badcla|ssstr, "|
|00002720| 43 6f 6d 6d 61 6e 64 20 | 27 25 63 25 63 27 3a 20 |Command |'%c%c': |
|00002730| 20 55 6e 6b 6e 6f 77 6e | 20 63 6f 6d 6d 61 6e 64 | Unknown| command|
|00002740| 20 65 6e 74 72 79 20 27 | 25 63 27 20 28 64 65 63 | entry '|%c' (dec|
|00002750| 69 6d 61 6c 20 25 75 29 | 22 2c 20 74 6b 70 74 72 |imal %u)|", tkptr|
|00002760| 2d 3e 63 6c 61 73 73 2c | 20 74 6b 70 74 72 2d 3e |->class,| tkptr->|
|00002770| 65 6e 74 72 79 2c 20 74 | 6b 70 74 72 2d 3e 65 6e |entry, t|kptr->en|
|00002780| 74 72 79 2c 20 28 69 6e | 74 29 20 74 6b 70 74 72 |try, (in|t) tkptr|
|00002790| 2d 3e 65 6e 74 72 79 29 | 3b 0d 09 53 65 74 44 41 |->entry)|;..SetDA|
|000027a0| 46 6f 6e 74 28 28 73 68 | 6f 72 74 29 20 4f 55 52 |Font((sh|ort) OUR|
|000027b0| 43 48 49 43 41 47 4f 29 | 3b 0d 09 65 72 72 6f 72 |CHICAGO)|;..error|
|000027c0| 28 62 61 64 63 6c 61 73 | 73 73 74 72 29 3b 0d 09 |(badclas|sstr);..|
|000027d0| 53 65 74 44 41 46 6f 6e | 74 28 28 73 68 6f 72 74 |SetDAFon|t((short|
|000027e0| 29 20 73 79 73 74 65 6d | 46 6f 6e 74 29 3b 0d 7d |) system|Font);.}|
|000027f0| 0d 0d 0d 77 6f 72 64 73 | 65 6c 65 63 74 28 29 0d |...words|elect().|
|00002800| 7b 0d 09 72 65 67 69 73 | 74 65 72 20 63 68 61 72 |{..regis|ter char|
|00002810| 20 2a 20 63 68 70 3b 0d | 09 63 68 61 72 20 2a 20 | * chp;.|.char * |
|00002820| 74 68 65 70 3b 0d 09 72 | 65 67 69 73 74 65 72 20 |thep;..r|egister |
|00002830| 63 68 61 72 20 2a 20 20 | 6c 69 6e 65 73 74 61 72 |char * |linestar|
|00002840| 74 3b 0d 09 72 65 67 69 | 73 74 65 72 20 63 68 61 |t;..regi|ster cha|
|00002850| 72 20 2a 20 20 6c 69 6e | 65 65 6e 64 3b 0d 09 72 |r * lin|eend;..r|
|00002860| 65 67 69 73 74 65 72 20 | 75 6e 73 69 67 6e 65 64 |egister |unsigned|
|00002870| 20 63 68 61 72 20 74 68 | 65 63 68 61 72 3b 0d 09 | char th|echar;..|
|00002880| 73 68 6f 72 74 20 74 68 | 65 79 70 6f 73 3b 0d 09 |short th|eypos;..|
|00002890| 73 68 6f 72 74 20 74 68 | 65 78 70 6f 73 3b 0d 09 |short th|expos;..|
|000028a0| 73 68 6f 72 74 20 73 74 | 61 72 74 79 70 6f 73 3b |short st|artypos;|
|000028b0| 09 09 09 2f 2a 20 78 2c | 79 20 73 74 61 72 74 69 |.../* x,|y starti|
|000028c0| 6e 67 20 61 6e 64 20 65 | 6e 64 69 6e 67 20 70 6f |ng and e|nding po|
|000028d0| 73 69 74 69 6f 6e 73 2e | 20 79 20 3d 20 63 6f 6c |sitions.| y = col|
|000028e0| 75 6d 6e 20 2a 2f 0d 09 | 73 68 6f 72 74 20 73 74 |umn */..|short st|
|000028f0| 61 72 74 78 70 6f 73 3b | 0d 09 73 68 6f 72 74 20 |artxpos;|..short |
|00002900| 65 6e 64 79 70 6f 73 3b | 0d 09 73 68 6f 72 74 20 |endypos;|..short |
|00002910| 65 6e 64 78 70 6f 73 3b | 0d 09 0d 09 73 65 6c 72 |endxpos;|....selr|
|00002920| 65 73 65 74 28 65 6d 64 | 70 29 3b 0d 09 69 66 20 |eset(emd|p);..if |
|00002930| 28 65 6d 64 70 2d 3e 69 | 62 6d 5f 6d 6f 64 65 29 |(emdp->i|bm_mode)|
|00002940| 20 7b 0d 09 09 74 68 65 | 70 20 3d 20 63 68 70 20 | {...the|p = chp |
|00002950| 3d 20 63 75 72 73 6f 72 | 5f 70 74 72 3b 0d 09 09 |= cursor|_ptr;...|
|00002960| 0d 09 09 73 74 61 72 74 | 79 70 6f 73 20 3d 20 28 |...start|ypos = (|
|00002970| 63 68 70 20 2d 20 73 63 | 72 5f 6d 61 70 29 20 2f |chp - sc|r_map) /|
|00002980| 20 65 6d 64 70 2d 3e 6c | 69 6e 65 6c 65 6e 67 74 | emdp->l|inelengt|
|00002990| 68 3b 0d 09 09 6c 69 6e | 65 73 74 61 72 74 20 3d |h;...lin|estart =|
|000029a0| 20 73 63 72 5f 6d 61 70 | 20 2b 20 28 73 74 61 72 | scr_map| + (star|
|000029b0| 74 79 70 6f 73 20 2a 20 | 65 6d 64 70 2d 3e 6c 69 |typos * |emdp->li|
|000029c0| 6e 65 6c 65 6e 67 74 68 | 29 3b 0d 09 09 6c 69 6e |nelength|);...lin|
|000029d0| 65 65 6e 64 20 3d 20 6c | 69 6e 65 73 74 61 72 74 |eend = l|inestart|
|000029e0| 20 2b 20 65 6d 64 70 2d | 3e 6c 69 6e 65 6c 65 6e | + emdp-|>linelen|
|000029f0| 67 74 68 3b 0d 0d 09 09 | 77 68 69 6c 65 20 28 63 |gth;....|while (c|
|00002a00| 68 70 20 3e 3d 20 65 6d | 64 70 2d 3e 73 63 72 5f |hp >= em|dp->scr_|
|00002a10| 6d 61 70 20 26 26 20 63 | 68 70 20 3e 3d 20 6c 69 |map && c|hp >= li|
|00002a20| 6e 65 73 74 61 72 74 29 | 20 7b 0d 09 09 09 2f 2a |nestart)| {..../*|
|00002a30| 20 66 69 6e 64 20 61 20 | 73 70 61 63 65 20 61 74 | find a |space at|
|00002a40| 20 74 68 65 20 6c 65 66 | 74 20 65 6e 64 20 2a 2f | the lef|t end */|
|00002a50| 0d 09 09 09 74 68 65 63 | 68 61 72 20 3d 20 2a 63 |....thec|har = *c|
|00002a60| 68 70 3b 0d 09 09 09 69 | 66 20 28 74 68 65 63 68 |hp;....i|f (thech|
|00002a70| 61 72 20 3c 20 41 54 54 | 52 20 7c 7c 20 74 68 65 |ar < ATT|R || the|
|00002a80| 63 68 61 72 20 3d 3d 20 | 49 42 4d 4e 55 4c 4c 20 |char == |IBMNULL |
|00002a90| 7c 7c 20 74 68 65 63 68 | 61 72 20 3d 3d 20 27 20 ||| thech|ar == ' |
|00002aa0| 27 29 0d 09 09 09 09 62 | 72 65 61 6b 3b 0d 09 09 |').....b|reak;...|
|00002ab0| 09 2d 2d 63 68 70 3b 0d | 09 09 7d 0d 09 09 63 68 |.--chp;.|..}...ch|
|00002ac0| 70 2b 2b 3b 0d 09 09 73 | 74 61 72 74 78 70 6f 73 |p++;...s|tartxpos|
|00002ad0| 20 3d 20 63 68 70 20 2d | 20 28 73 63 72 5f 6d 61 | = chp -| (scr_ma|
|00002ae0| 70 20 2b 20 28 73 74 61 | 72 74 79 70 6f 73 20 2a |p + (sta|rtypos *|
|00002af0| 20 65 6d 64 70 2d 3e 6c | 69 6e 65 6c 65 6e 67 74 | emdp->l|inelengt|
|00002b00| 68 29 29 3b 0d 09 09 0d | 09 09 63 68 70 20 3d 20 |h));....|..chp = |
|00002b10| 74 68 65 70 3b 0d 09 09 | 77 68 69 6c 65 20 28 63 |thep;...|while (c|
|00002b20| 68 70 20 3c 20 65 6d 64 | 70 2d 3e 73 6d 61 70 5f |hp < emd|p->smap_|
|00002b30| 65 6e 64 20 26 26 20 63 | 68 70 20 3c 20 6c 69 6e |end && c|hp < lin|
|00002b40| 65 65 6e 64 29 20 7b 0d | 09 09 09 2f 2a 20 66 69 |eend) {.|.../* fi|
|00002b50| 6e 64 20 61 20 73 70 61 | 63 65 20 61 74 20 74 68 |nd a spa|ce at th|
|00002b60| 65 20 72 69 67 68 74 20 | 65 6e 64 20 2a 2f 0d 09 |e right |end */..|
|00002b70| 09 09 74 68 65 63 68 61 | 72 20 3d 20 2a 63 68 70 |..thecha|r = *chp|
|00002b80| 3b 0d 09 09 09 69 66 20 | 28 74 68 65 63 68 61 72 |;....if |(thechar|
|00002b90| 20 3c 20 41 54 54 52 20 | 7c 7c 20 74 68 65 63 68 | < ATTR ||| thech|
|00002ba0| 61 72 20 3d 3d 20 49 42 | 4d 4e 55 4c 4c 20 7c 7c |ar == IB|MNULL |||
|00002bb0| 20 74 68 65 63 68 61 72 | 20 3d 3d 20 27 20 27 29 | thechar| == ' ')|
|00002bc0| 0d 09 09 09 09 62 72 65 | 61 6b 3b 0d 09 09 09 63 |.....bre|ak;....c|
|00002bd0| 68 70 2b 2b 3b 0d 09 09 | 7d 0d 09 09 65 6e 64 79 |hp++;...|}...endy|
|00002be0| 70 6f 73 20 3d 20 28 63 | 68 70 20 2d 20 65 6d 64 |pos = (c|hp - emd|
|00002bf0| 70 2d 3e 73 63 72 5f 6d | 61 70 29 20 2f 20 65 6d |p->scr_m|ap) / em|
|00002c00| 64 70 2d 3e 6c 69 6e 65 | 6c 65 6e 67 74 68 3b 0d |dp->line|length;.|
|00002c10| 09 09 65 6e 64 78 70 6f | 73 20 3d 20 28 63 68 70 |..endxpo|s = (chp|
|00002c20| 20 2d 20 28 73 63 72 5f | 6d 61 70 20 2b 20 28 65 | - (scr_|map + (e|
|00002c30| 6e 64 79 70 6f 73 20 2a | 20 65 6d 64 70 2d 3e 6c |ndypos *| emdp->l|
|00002c40| 69 6e 65 6c 65 6e 67 74 | 68 29 29 29 3b 0d 09 7d |inelengt|h)));..}|
|00002c50| 0d 09 65 6c 73 65 20 7b | 0d 09 09 74 68 65 70 20 |..else {|...thep |
|00002c60| 3d 20 63 68 70 20 3d 20 | 63 68 61 72 70 3b 0d 09 |= chp = |charp;..|
|00002c70| 09 0d 09 09 73 74 61 72 | 74 79 70 6f 73 20 3d 20 |....star|typos = |
|00002c80| 28 63 68 70 20 2d 20 26 | 65 6d 64 70 2d 3e 63 68 |(chp - &|emdp->ch|
|00002c90| 61 72 72 5b 30 5d 29 20 | 2f 20 65 6d 64 70 2d 3e |arr[0]) |/ emdp->|
|00002ca0| 6c 69 6e 65 6c 65 6e 67 | 74 68 3b 0d 09 09 6c 69 |lineleng|th;...li|
|00002cb0| 6e 65 73 74 61 72 74 20 | 3d 20 26 65 6d 64 70 2d |nestart |= &emdp-|
|00002cc0| 3e 63 68 61 72 72 5b 30 | 5d 20 2b 20 28 73 74 61 |>charr[0|] + (sta|
|00002cd0| 72 74 79 70 6f 73 20 2a | 20 65 6d 64 70 2d 3e 6c |rtypos *| emdp->l|
|00002ce0| 69 6e 65 6c 65 6e 67 74 | 68 29 3b 0d 09 09 6c 69 |inelengt|h);...li|
|00002cf0| 6e 65 65 6e 64 20 3d 20 | 6c 69 6e 65 73 74 61 72 |neend = |linestar|
|00002d00| 74 20 2b 20 65 6d 64 70 | 2d 3e 6c 69 6e 65 6c 65 |t + emdp|->linele|
|00002d10| 6e 67 74 68 3b 0d 0d 09 | 09 77 68 69 6c 65 20 28 |ngth;...|.while (|
|00002d20| 63 68 70 20 3e 3d 20 26 | 65 6d 64 70 2d 3e 63 68 |chp >= &|emdp->ch|
|00002d30| 61 72 72 5b 30 5d 20 26 | 26 20 63 68 70 20 3e 3d |arr[0] &|& chp >=|
|00002d40| 20 6c 69 6e 65 73 74 61 | 72 74 29 20 7b 0d 09 09 | linesta|rt) {...|
|00002d50| 09 69 66 20 28 2a 63 68 | 70 20 3d 3d 20 27 20 27 |.if (*ch|p == ' '|
|00002d60| 29 0d 09 09 09 09 62 72 | 65 61 6b 3b 0d 09 09 09 |).....br|eak;....|
|00002d70| 2d 2d 63 68 70 3b 0d 09 | 09 7d 0d 09 09 63 68 70 |--chp;..|.}...chp|
|00002d80| 2b 2b 3b 0d 09 09 73 74 | 61 72 74 78 70 6f 73 20 |++;...st|artxpos |
|00002d90| 3d 20 63 68 70 20 2d 20 | 28 26 65 6d 64 70 2d 3e |= chp - |(&emdp->|
|00002da0| 63 68 61 72 72 5b 30 5d | 20 2b 20 28 73 74 61 72 |charr[0]| + (star|
|00002db0| 74 79 70 6f 73 20 2a 20 | 65 6d 64 70 2d 3e 6c 69 |typos * |emdp->li|
|00002dc0| 6e 65 6c 65 6e 67 74 68 | 29 29 3b 0d 09 09 0d 09 |nelength|));.....|
|00002dd0| 09 63 68 70 20 3d 20 74 | 68 65 70 3b 0d 09 09 77 |.chp = t|hep;...w|
|00002de0| 68 69 6c 65 20 28 63 68 | 70 20 3c 20 65 6d 64 70 |hile (ch|p < emdp|
|00002df0| 2d 3e 63 68 61 72 72 65 | 6e 64 20 26 26 20 63 68 |->charre|nd && ch|
|00002e00| 70 20 3c 20 6c 69 6e 65 | 65 6e 64 29 20 7b 0d 09 |p < line|end) {..|
|00002e10| 09 09 69 66 20 28 2a 63 | 68 70 20 3d 3d 20 27 20 |..if (*c|hp == ' |
|00002e20| 27 29 0d 09 09 09 09 62 | 72 65 61 6b 3b 0d 09 09 |').....b|reak;...|
|00002e30| 09 63 68 70 2b 2b 3b 0d | 09 09 7d 0d 09 09 65 6e |.chp++;.|..}...en|
|00002e40| 64 79 70 6f 73 20 3d 20 | 28 63 68 70 20 2d 20 26 |dypos = |(chp - &|
|00002e50| 65 6d 64 70 2d 3e 63 68 | 61 72 72 5b 30 5d 29 20 |emdp->ch|arr[0]) |
|00002e60| 2f 20 65 6d 64 70 2d 3e | 6c 69 6e 65 6c 65 6e 67 |/ emdp->|lineleng|
|00002e70| 74 68 3b 0d 09 09 65 6e | 64 78 70 6f 73 20 3d 20 |th;...en|dxpos = |
|00002e80| 63 68 70 20 2d 20 28 26 | 65 6d 64 70 2d 3e 63 68 |chp - (&|emdp->ch|
|00002e90| 61 72 72 5b 30 5d 20 2b | 20 28 65 6e 64 79 70 6f |arr[0] +| (endypo|
|00002ea0| 73 20 2a 20 65 6d 64 70 | 2d 3e 6c 69 6e 65 6c 65 |s * emdp|->linele|
|00002eb0| 6e 67 74 68 29 29 3b 0d | 09 7d 0d 09 2f 2a 20 6e |ngth));.|.}../* n|
|00002ec0| 6f 77 20 69 6e 76 65 72 | 74 20 74 68 65 20 73 65 |ow inver|t the se|
|00002ed0| 6c 65 63 74 69 6f 6e 20 | 2a 2f 0d 09 69 66 20 28 |lection |*/..if (|
|00002ee0| 73 74 61 72 74 79 70 6f | 73 20 3d 3d 20 65 6e 64 |startypo|s == end|
|00002ef0| 79 70 6f 73 20 26 26 20 | 73 74 61 72 74 78 70 6f |ypos && |startxpo|
|00002f00| 73 20 3e 3d 20 65 6e 64 | 78 70 6f 73 29 0d 09 09 |s >= end|xpos)...|
|00002f10| 2f 2a 20 6e 6f 20 73 65 | 6c 65 63 74 69 6f 6e 20 |/* no se|lection |
|00002f20| 2a 2f 0d 09 09 72 65 74 | 75 72 6e 3b 0d 09 09 0d |*/...ret|urn;....|
|00002f30| 09 73 65 6c 73 65 74 28 | 73 74 61 72 74 79 70 6f |.selset(|startypo|
|00002f40| 73 2c 20 73 74 61 72 74 | 78 70 6f 73 2c 20 65 6e |s, start|xpos, en|
|00002f50| 64 79 70 6f 73 2c 20 65 | 6e 64 78 70 6f 73 29 3b |dypos, e|ndxpos);|
|00002f60| 0d 09 73 65 6c 69 6e 76 | 65 72 74 28 65 6d 64 70 |..selinv|ert(emdp|
|00002f70| 29 3b 0d 09 65 6d 64 70 | 2d 3e 73 65 6c 72 65 63 |);..emdp|->selrec|
|00002f80| 74 76 69 73 20 3d 20 54 | 52 55 45 3b 0d 7d 0d 0d |tvis = T|RUE;.}..|
|00002f90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002fa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002fb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002fc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002fd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ff0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003000| 00 00 01 00 00 00 01 4c | 00 00 00 4c 00 00 00 32 |.......L|...L...2|
|00003010| 2b 48 f1 f0 2f 2e 00 18 | 2f 2e 00 14 2f 2e 00 10 |+H../...|/.../...|
|00003020| 2f 0c 2f 0b 4e ba fc 06 | 2e 00 66 06 17 7c 00 01 |/./.N...|..f..|..|
|00003030| 07 74 6f 6b 65 6e 2e 63 | 02 00 00 00 50 61 72 74 |.token.c|....Part|
|00003040| 53 49 54 78 00 00 00 00 | 00 00 00 00 00 01 8b e4 |SITx....|........|
|00003050| 00 00 50 61 72 74 53 49 | 54 78 00 00 00 00 00 00 |..PartSI|Tx......|
|00003060| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003070| 00 00 a9 8d 3a 75 00 00 | 00 00 00 00 01 7e 4e 5e |....:u..|.....~N^|
|00003080| 4e 75 89 76 61 6c 69 64 | 45 64 69 74 00 00 4e 56 |Nu.valid|Edit..NV|
|00003090| 00 00 2f 0b 59 8f a9 24 | 26 5f 70 00 72 45 b2 6b |../.Y..$|&_p.rE.k|
|000030a0| 00 6c 67 08 72 46 b2 6b | 00 6c 66 12 4a ad ed 30 |.lg.rF.k|.lf.J..0|
|000030b0| 67 0c 22 2d ed 30 b2 ad | e9 92 67 02 70 01 26 6e |g."-.0..|..g.p.&n|
|000030c0| ff fc 4e 5e 4e 75 92 76 | 61 6c 69 64 45 64 69 74 |..N^Nu.v|alidEdit|
|000030d0| 4f 72 50 72 6f 6a 65 63 | 74 00 00 00 4e 56 00 00 |OrProjec|t...NV..|
|000030e0| 48 e7 01 10 3e 2e 00 0e | 26 6e 00 08 4a 2e 00 13 |H...>...|&n..J...|
|000030f0| 67 08 2f 0b 3f 07 a9 39 | 60 06 2f 0b 3f 07 a9 3a |g./.?..9|`./.?..:|
|00003100| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 3c 65 6d |...H..Mo|naco.<em|
|00003110| 2e 68 3e 0d 23 69 6e 63 | 6c 75 64 65 20 3c 66 6f |.h>.#inc|lude <fo|
|00003120| 6e 74 2e 68 3e 0d 00 06 | 00 04 00 27 00 00 01 e1 |nt.h>...|...'....|
|00003130| 02 00 00 27 00 00 01 e1 | 02 00 a5 34 8f 97 00 00 |...'....|...4....|
|00003140| 13 35 00 00 13 3a 00 00 | 11 93 01 00 00 00 01 00 |.5...:..|........|
|00003150| 00 00 01 4c 00 00 00 4c | 00 00 00 32 00 0f 54 50 |...L...L|...2..TP|
|00003160| 04 6a 00 00 00 1c 00 32 | 00 00 4d 50 53 52 00 00 |.j.....2|..MPSR..|
|00003170| 00 0a 03 ed ff ff 00 00 | 00 00 00 10 8d 58 00 00 |........|.....X..|
+--------+-------------------------+-------------------------+--------+--------+